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

Disassembly:
push 0xffffffffffffffff
push 0x101fb73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d8
push ebx
push ebp
push esi
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x70]
call fcn.10058000
mov eax, dword [esp + 0x2fc]
mov esi, dword [esp + 0x2f8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x2f0], ebp
mov dword [esp + 0x28], ebp
jbe 0x10037485
lea edi, [esi + 0xc4]
lea ebx, [esi + 0x31c]
mov dword [esp + 0x14], eax
jmp 0x10037460
mov eax, dword [edi + 0x30]
test eax, eax
je 0x10037474
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
push edi
call fcn.10036bf0
inc ebp
mov eax, dword [esp + 0x14]
add ebx, 0x3c
add edi, 0x60
dec eax
mov dword [esp + 0x14], eax
jne 0x10037460
mov eax, dword [esp + 0x300]
test eax, eax
jbe 0x100374c5
lea edi, [esi + 4]
lea ebx, [esi + 0x2a4]
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x100374b4
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
push edi
call fcn.10036bf0
inc ebp
mov eax, dword [esp + 0x14]
add ebx, 0x3c
add edi, 0x60
dec eax
mov dword [esp + 0x14], eax
jne 0x100374a0
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov byte [esp + 0x70], al
mov al, byte [esi + 0x44c]
test al, al
mov eax, dword [esp + 0x70]
je 0x100374fc
mov ecx, dword [esi + 0x448]
shl ecx, 8
xor ecx, eax
and ecx, 0x700
xor eax, ecx
mov cl, byte [esi + 0x454]
test cl, cl
je 0x10037519
mov ecx, dword [esi + 0x450]
shl ecx, 0xb
xor ecx, eax
and ecx, 0x1800
xor eax, ecx
movzx ecx, byte [esi + 0x455]
movzx edx, byte [esi + 0x456]
shl ecx, 0xd
xor ecx, eax
and ecx, 0x2000
xor eax, ecx
shl edx, 0xe
xor edx, eax
and edx, 0x4000
xor eax, edx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2fc]
test eax, eax
mov dword [esp + 0x20], 0
jbe 0x100377d7
mov eax, dword [esp + 0x2f8]
lea ebx, [esi + 0x31c]
add esi, 0xc4
add eax, 0x45e
lea ebp, [esp + 0xa8]
lea edi, [esp + 0x258]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push esi
call fcn.10037320
mov edx, dword [esp + 0x28]
inc edx
add edi, 0xc
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
jne 0x100377a7
cmp dword [esi + 0x2c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
je 0x10037606
lea ecx, [esp + 0x1b]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push ebx
push esi
call fcn.10046900
test eax, eax
mov dword [esp + 0x24], eax
jne 0x1003760f
mov edx, dword [edi]
push edx
mov ecx, esi
call fcn.10036a20
mov eax, dword [edi + 4]
test eax, eax
je 0x1003760f
mov ecx, 0xf
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
jmp 0x1003760f
mov byte [esp + 0x1b], 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ecx
add edi, 0xc
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jne 0x100377a7
mov eax, dword [esp + 0x20]
push eax
push ebp
lea edx, [esp + 0x78]
mov ecx, ebx
call fcn.100330d0
mov al, byte [esp + 0x1b]
test al, al
je 0x1003764d
mov edx, ebp
mov ecx, esi
call fcn.10032ec0
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10033270
mov edx, dword [esi + 0x24]
xor esi, esi
cmp edx, esi
je 0x1003772e
cmp dword [edx + 0x20], esi
je 0x1003772e
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
mov eax, 1
add ecx, 0x550
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], esi
call fcn.10032f40
cmp eax, esi
jne 0x10037717
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0xa8]
mov esi, dword [ebp + 0xac]
and eax, 0xf
cdq
shld edx, eax, 0xf
shl eax, 0xf
or edx, esi
and ecx, 0xfff87fff
or eax, ecx
mov dword [ebp + 0xa8], eax
mov ecx, dword [ebp + 0xa8]
mov dword [ebp + 0xac], edx
mov esi, dword [ebp + 0xac]
mov edx, dword [esp + 0x34]
xor eax, eax
and edx, 0x7fff
and ecx, 0xffff8000
or edx, ecx
or eax, esi
mov dword [ebp + 0xac], eax
mov eax, edx
mov dword [ebp + 0xa8], edx
mov edx, dword [ebp + 0xac]
and eax, 0xf807ffff
mov dword [ebp + 0xa8], eax
mov dword [ebp + 0xac], edx
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
or edx, 0x40000000
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp], edx
jmp 0x10037786
cmp dword [ebx + 0x20], 9
je 0x10037784
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
cmp eax, 1
je 0x10037743
cmp eax, 2
jne 0x10037784
mov edx, dword [ebp]
mov eax, dword [ebx + 0x24]
mov esi, dword [ebp + 4]
and eax, 0x7fff
xor ecx, ecx
and edx, 0xffff8000
or eax, edx
or ecx, esi
mov dword [ebp], eax
mov eax, dword [ebx]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.10057390
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
or eax, 0x80000000
mov dword [ebp + 4], edx
jmp 0x100377a0
mov eax, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ebp + 4]
and eax, 0x7fff
and edx, 0xffff8000
xor ecx, ecx
or eax, edx
or ecx, esi
mov dword [ebp + 4], ecx
mov esi, dword [esp + 0x10]
mov dword [ebp], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, 5
inc eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2fc]
add esi, 0x60
add ebp, 8
add ebx, 0x3c
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
jb 0x10037590
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10037a5f
mov eax, dword [esp + 0x300]
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x10037a46
mov ecx, dword [esp + 0x2f8]
mov eax, dword [esp + 0x28]
lea edx, [ecx + 0x30]
lea ebx, [ecx + 0x2c4]
add ecx, 0x459
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x300]
lea edi, [eax + eax*2]
add eax, ecx
lea esi, [esp + 0x74]
lea edi, [esp + edi*4 + 0x258]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
jmp 0x10037840
mov edi, dword [esp + 0x2c]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push edi
lea ebp, [ebx - 0x20]
add eax, 0xffffffd4
push ebp
push eax
call fcn.10037320
add edi, 0xc
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], edi
jne 0x10037a0a
mov edx, dword [esp + 0x20]
mov edi, dword [ebx]
xor eax, eax
mov al, byte [edx + 1]
xor ecx, ecx
mov cl, byte [edx]
movzx edx, byte [edx - 1]
and edx, 1
and eax, 1
shl eax, 1
and ecx, 1
or eax, ecx
shl eax, 1
or eax, edx
mov edx, dword [esi]
shl eax, 8
mov ecx, edi
and ecx, 0xf
or eax, ecx
mov ecx, dword [esp + 0x10]
and edx, 0xfc787fff
shl eax, 0xf
or eax, edx
mov edx, dword [ecx - 8]
test edx, edx
mov dword [esi], eax
je 0x10037963
cmp dword [edx + 0x20], 0
je 0x10037963
xor ecx, ecx
mov eax, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x34]
push eax
add ecx, 0x550
call fcn.10032f40
test eax, eax
jne 0x10037944
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x84]
and eax, 0xf
cdq
shld edx, eax, 0xf
mov ecx, edx
mov edx, dword [esp + 0x80]
and edx, 0xfff87fff
shl eax, 0xf
or eax, edx
mov edx, dword [esp + 0x34]
or ecx, edi
and edx, 0x7fff
and eax, 0xffff8000
xor edi, edi
or edx, eax
or edi, ecx
and edx, 0xf807ffff
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edi
mov ecx, dword [esi]
mov eax, dword [ebx + 4]
and ecx, 0xffff8000
and eax, 0x7fff
or eax, ecx
mov ecx, dword [esp + 0x10]
or eax, 0x1000000
mov dword [esi], eax
jmp 0x100379ba
cmp edi, 9
je 0x100379a9
mov edx, dword [ebx + 8]
mov edx, dword [edx]
cmp edx, 1
je 0x10037977
cmp edx, 6
jne 0x100379a9
mov ecx, dword [ebx + 4]
mov edx, eax
xor edx, ecx
mov ecx, dword [esp + 0x14]
and edx, 0x7fff
xor edx, eax
mov eax, dword [ebp]
push eax
push ecx
lea ecx, [esp + 0x78]
mov dword [esi], edx
call fcn.100572c0
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
or eax, 0x2000000
mov dword [esi], eax
jmp 0x100379ba
mov ebp, dword [ebp]
mov edx, eax
xor edx, ebp
and edx, 0x7fff
xor edx, eax
mov dword [esi], edx
mov eax, dword [ecx]
test eax, eax
je 0x100379e7
mov edx, dword [eax + 0x20]
test edx, edx
je 0x100379e7
lea eax, [esp + 0x70]
push eax
lea eax, [ecx - 0x2c]
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x614]
lea ecx, [eax + 0x550]
call fcn.10044650
jmp 0x10037a0a
lea edi, [ecx - 0x2c]
mov ecx, edi
call fcn.100445a0
sub esp, 0x60
mov ecx, esp
mov dword [esp + 0x90], esp
push edi
call fcn.10035ab0
mov ecx, esi
call fcn.10033f90
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x300]
inc eax
add ebp, 3
add edx, 0x60
add esi, 4
add ebx, 0x3c
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], edx
jb 0x10037839
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10037a5f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [eax + 0x614]
lea edx, [esp + 0x34]
push edx
call fcn.10059430
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x10037a9d
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
lea esi, [esp + 0x25c]
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x10037a81
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi]
test eax, eax
je 0x10037a8a
push eax
call ebx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10037a97
mov eax, dword [ecx]
push 1
call dword [eax]
add esi, 0xc
dec edi
jne 0x10037a74
lea ecx, [esp + 0x70]
mov dword [esp + 0x2f0], 0xffffffff
call fcn.10058030
mov ecx, dword [esp + 0x2e8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2e4
ret 0xc