Function at 0x37be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
cmp ebx, 0xffffffff
push edi
mov edi, eax
jne 0x37bff
mov eax, dword [edi]
mov ecx, 0x40
rep stosd dword es:[edi], eax
pop edi
pop ebx
add esp, 0x1c
ret
xor ecx, ecx
push ebp
mov dword [esp + 0x20], ecx
lea eax, [edi + 0x20]
push esi
lea ebx, [ebx]
mov esi, 1
shl esi, cl
test ebx, esi
jne 0x37c4b
mov edx, dword [eax - 0x20]
test edx, edx
je 0x37d38
or ebx, esi
mov dword [eax + 0xc0], edx
mov dword [eax + 0xa0], edx
mov dword [eax + 0x80], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x20], edx
mov dword [eax], edx
mov dword [esp + 0x30], ebx
jmp 0x37d35
mov edx, dword [eax + 0x60]
mov ecx, dword [eax - 0x20]
mov ebp, dword [eax + 0xa0]
lea esi, [ecx + edx]
sub ecx, edx
mov edx, dword [eax + 0x20]
lea ebx, [edx + ebp]
sub edx, ebp
imul edx, edx, 0x16a1
lea ebp, [ebx + esi]
sub esi, ebx
sar edx, 0xc
sub edx, ebx
mov ebx, dword [eax]
mov dword [esp + 0x28], esi
lea esi, [edx + ecx]
sub ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x1c], esi
mov esi, dword [eax + 0x40]
lea edx, [esi + ecx]
sub esi, ecx
mov ecx, dword [eax + 0xc0]
mov dword [esp + 0x14], edx
lea edx, [ecx + ebx]
sub ebx, ecx
mov ecx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, ebx
imul ebx, ebx, 0x1151
sub ecx, esi
imul esi, esi, 0x29cf
imul ecx, ecx, 0x1d90
add esi, ecx
sar esi, 0xc
sub esi, dword [esp + 0x10]
sub ebx, ecx
mov ecx, dword [esp + 0x10]
add ecx, ebp
mov dword [esp + 0x18], esi
sub edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
imul edx, edx, 0x16a1
mov dword [eax - 0x20], ecx
sub ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc0], ebp
lea ebp, [esi + ecx]
sub ecx, esi
mov dword [eax + 0xa0], ecx
mov ecx, dword [esp + 0x20]
sar edx, 0xc
sub edx, esi
lea esi, [edx + ecx]
sub ecx, edx
sar ebx, 0xc
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x28]
add ebx, edx
lea edx, [ebx + ecx]
sub ecx, ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax], ebp
mov dword [eax + 0x20], esi
mov dword [eax + 0x60], edx
inc ecx
add eax, 4
cmp ecx, 8
mov dword [esp + 0x24], ecx
jl 0x37c10
cmp ebx, 1
jne 0x37e9c
mov eax, dword [edi]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov dword [edi + 0x48], eax
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x60]
mov dword [edi + 0x7c], eax
mov dword [edi + 0x78], eax
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], eax
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], eax
mov eax, dword [edi + 0x80]
mov dword [edi + 0x9c], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x94], eax
mov dword [edi + 0x90], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0x88], eax
mov dword [edi + 0x84], eax
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0xa0]
mov dword [edi + 0xbc], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xac], eax
mov dword [edi + 0xa8], eax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa0], eax
mov eax, dword [edi + 0xc0]
mov dword [edi + 0xdc], eax
mov dword [edi + 0xd8], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc0], eax
mov eax, dword [edi + 0xe0]
pop esi
pop ebp
mov dword [edi + 0xfc], eax
mov dword [edi + 0xf8], eax
mov dword [edi + 0xf4], eax
mov dword [edi + 0xf0], eax
mov dword [edi + 0xec], eax
mov dword [edi + 0xe8], eax
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe0], eax
pop edi
pop ebx
add esp, 0x1c
ret
lea eax, [edi + 4]
mov dword [esp + 0x30], 2
mov esi, dword [eax + 0xc]
mov ecx, dword [eax - 4]
lea edx, [esi + ecx]
mov ebx, dword [eax + 0x14]
sub ecx, esi
mov esi, ecx
mov ecx, dword [eax + 4]
lea edi, [ecx + ebx]
sub ecx, ebx
imul ecx, ecx, 0x16a1
lea ebx, [edi + edx]
sub edx, edi
sar ecx, 0xc
sub ecx, edi
mov edi, dword [eax + 0x18]
mov ebp, edx
lea edx, [ecx + esi]
sub esi, ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], esi
lea esi, [edx + ecx]
sub edx, ecx
mov dword [esp + 0x14], esi
mov esi, dword [eax]
lea ecx, [edi + esi]
sub esi, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x10], edi
mov edi, esi
imul esi, esi, 0x1151
sub edi, edx
imul edx, edx, 0x29cf
imul edi, edi, 0x1d90
add edx, edi
sar edx, 0xc
sub edx, dword [esp + 0x10]
sub esi, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x16a1
add edi, ebx
mov dword [eax - 4], edi
sub ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar ecx, 0xc
sub ecx, edx
mov dword [eax + 0x18], ebx
lea ebx, [edx + edi]
sub edi, edx
mov edx, dword [esp + 0x20]
sar esi, 0xc
add esi, ecx
mov dword [eax + 0x14], edi
lea edi, [ecx + edx]
sub edx, ecx
lea ecx, [esi + ebp]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x1c]
sub ebp, esi
mov esi, dword [eax + 0x2c]
mov dword [eax + 0x10], edx
lea edx, [esi + ecx]
sub ecx, esi
mov esi, ecx
mov ecx, dword [eax + 0x24]
mov dword [eax], ebx
mov ebx, dword [eax + 0x34]
mov dword [eax + 4], edi
lea edi, [ecx + ebx]
sub ecx, ebx
imul ecx, ecx, 0x16a1
sar ecx, 0xc
mov dword [eax + 8], ebp
sub ecx, edi
lea ebx, [edi + edx]
sub edx, edi
mov edi, dword [eax + 0x38]
mov ebp, edx
lea edx, [ecx + esi]
sub esi, ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x20], esi
lea esi, [edx + ecx]
sub edx, ecx
mov dword [esp + 0x14], esi
mov esi, dword [eax + 0x20]
lea ecx, [esi + edi]
sub esi, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x10], edi
mov edi, esi
imul esi, esi, 0x1151
sub edi, edx
imul edx, edx, 0x29cf
imul edi, edi, 0x1d90
add edx, edi
sar edx, 0xc
sub edx, dword [esp + 0x10]
sub esi, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x16a1
add edi, ebx
sar ecx, 0xc
sub ecx, edx
mov dword [eax + 0x1c], edi
sub ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar esi, 0xc
add esi, ecx
mov dword [eax + 0x38], ebx
lea ebx, [edx + edi]
sub edi, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x34], edi
lea edi, [ecx + edx]
sub edx, ecx
lea ecx, [esi + ebp]
mov dword [eax + 0x2c], ecx
mov ecx, dword [eax + 0x3c]
sub ebp, esi
mov esi, dword [eax + 0x4c]
mov dword [eax + 0x30], edx
lea edx, [esi + ecx]
sub ecx, esi
mov esi, ecx
mov ecx, dword [eax + 0x44]
mov dword [eax + 0x20], ebx
mov ebx, dword [eax + 0x54]
mov dword [eax + 0x24], edi
lea edi, [ecx + ebx]
sub ecx, ebx
imul ecx, ecx, 0x16a1
lea ebx, [edi + edx]
sar ecx, 0xc
sub edx, edi
sub ecx, edi
mov dword [eax + 0x28], ebp
mov ebp, edx
lea edx, [ecx + esi]
sub esi, ecx
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x48]
mov dword [esp + 0x20], esi
lea esi, [edx + ecx]
mov dword [esp + 0x14], esi
sub edx, ecx
mov edi, dword [eax + 0x58]
mov esi, dword [eax + 0x40]
lea ecx, [esi + edi]
sub esi, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x10], edi
mov edi, esi
imul esi, esi, 0x1151
sub edi, edx
imul edx, edx, 0x29cf
imul edi, edi, 0x1d90
add edx, edi
sar edx, 0xc
sub edx, dword [esp + 0x10]
sub esi, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x16a1
add edi, ebx
mov dword [eax + 0x3c], edi
sub ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar ecx, 0xc
sub ecx, edx
sar esi, 0xc
add esi, ecx
mov dword [eax + 0x58], ebx
lea ebx, [edx + edi]
sub edi, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x54], edi
lea edi, [ecx + edx]
sub edx, ecx
lea ecx, [esi + ebp]
mov dword [eax + 0x4c], ecx
mov ecx, dword [eax + 0x5c]
sub ebp, esi
mov esi, dword [eax + 0x6c]
mov dword [eax + 0x50], edx
lea edx, [ecx + esi]
sub ecx, esi
mov esi, ecx
mov ecx, dword [eax + 0x64]
mov dword [eax + 0x44], edi
mov dword [eax + 0x40], ebx
mov ebx, dword [eax + 0x74]
lea edi, [ebx + ecx]
sub ecx, ebx
imul ecx, ecx, 0x16a1
lea ebx, [edi + edx]
sub edx, edi
sar ecx, 0xc
sub ecx, edi
mov edi, dword [eax + 0x78]
mov dword [eax + 0x48], ebp
mov ebp, edx
lea edx, [ecx + esi]
sub esi, ecx
mov ecx, dword [eax + 0x70]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x68]
mov dword [esp + 0x20], esi
lea esi, [edx + ecx]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 0x60]
sub edx, ecx
lea ecx, [esi + edi]
sub esi, edi
mov edi, dword [esp + 0x14]
add edi, ecx
mov dword [esp + 0x10], edi
mov edi, esi
sub edi, edx
imul edx, edx, 0x29cf
imul edi, edi, 0x1d90
add edx, edi
sar edx, 0xc
imul esi, esi, 0x1151
sub edx, dword [esp + 0x10]
sub esi, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x16a1
add edi, ebx
mov dword [eax + 0x5c], edi
sub ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
sar ecx, 0xc
sub ecx, edx
mov dword [eax + 0x78], ebx
lea ebx, [edx + edi]
sub edi, edx
mov edx, dword [esp + 0x20]
sar esi, 0xc
add esi, ecx
mov dword [eax + 0x74], edi
lea edi, [ecx + edx]
sub edx, ecx
lea ecx, [esi + ebp]
mov dword [eax + 0x6c], ecx
mov ecx, dword [esp + 0x30]
sub ebp, esi
mov dword [eax + 0x60], ebx
mov dword [eax + 0x64], edi
mov dword [eax + 0x70], edx
mov dword [eax + 0x68], ebp
add eax, 0x80
dec ecx
mov dword [esp + 0x30], ecx
jne 0x37ea7
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret