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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x310e008]
xor eax, esp
mov dword [esp + 0xb8], eax
and dword [esp + 0x24], 0
push ebx
mov ebx, ecx
mov byte [esp + 0xb], 0
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0xac]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x3051c53
xor edx, edx
mov eax, esi
div dword [ebx + 0x68]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x3051c57
cmp dword [eax + 4], esi
je 0x3051c39
mov eax, dword [eax]
test eax, eax
jne 0x3051c2e
mov edx, dword [esp + 0x20]
test eax, eax
je 0x3051c57
push 6
lea esi, [eax + 8]
mov edi, edx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x20]
jmp 0x3052103
xor eax, eax
jmp 0x3051c3d
mov ecx, ebx
call fcn.030502ca
mov dword [esp + 0x34], eax
test eax, eax
jne 0x3051c70
mov eax, 0xc0000017
jmp 0x3052103
lea eax, [esp + 0x38]
mov dword [esp + 0x84], esi
mov dword [esp + 0x24], eax
lea edi, [esp + 0x38]
xor eax, eax
mov esi, dword [esp + 0x20]
stosd dword es:[edi], eax
push 6
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x50]
mov dword [esp + 0x28], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
or dword [esp + 0x9c], 0x80000
mov esi, 0xc0000017
test edx, edx
jne 0x3051cf0
mov ecx, dword [ebx + 0xac]
lea eax, [ecx + 0x24]
cmp ecx, eax
ja 0x3051ce0
cmp dword [ebx + 0x34], eax
jb 0x3051ce0
mov edx, dword [ebx + 0x38]
add edx, ecx
mov dword [ebx + 0xac], eax
jmp 0x3051ce5
mov dword [ebx + 0x50], esi
xor edx, edx
test edx, edx
jne 0x3051cf6
mov eax, esi
jmp 0x30520f9
mov eax, dword [edx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
lea esi, [esp + 0x80]
push 9
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
and dword [edx], 0
test eax, eax
je 0x3051d13
mov dword [eax], edx
jmp 0x3051d17
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x24]
cmp dword [edx], 0
jne 0x3051d63
mov esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x3051feb
cmp byte [esp + 0x13], 0
jne 0x3051d54
test byte [ebx + 0xa4], 0x10
je 0x3051fdd
mov dword [esp + 0x28], edx
mov edx, esi
mov byte [esp + 0x13], 1
mov dword [esp + 0x24], edx
mov esi, dword [edx]
lea edi, [esp + 0x80]
push 9
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [edx], eax
test eax, eax
jne 0x3051d7e
and dword [edx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov esi, dword [esp + 0x84]
mov eax, esi
mov dword [edx + 8], ecx
xor edx, edx
div dword [ebx + 0x44]
mov edi, dword [esp + 0x34]
cmp dword [edi + edx*4], esi
je 0x3051d23
xor edx, edx
mov eax, esi
div dword [ebx + 0x44]
lea eax, [esp + 0xa4]
mov ecx, ebx
push eax
mov dword [edi + edx*4], esi
mov edx, dword [esp + 0x88]
call fcn.0305025a
mov dword [esp + 0xc], eax
test eax, eax
js 0x3051f97
lea ecx, [esp + 0xa4]
call fcn.0304fa3f
test al, al
je 0x3051f85
movzx esi, byte [esp + 0x9c]
lea eax, [esp + 0xa4]
push eax
lea edx, [esp + 0x8c]
mov ecx, ebx
call fcn.030515d6
mov dword [esp + 0xc], eax
test eax, eax
js 0x3051fa3
mov ecx, dword [esp + 0x9c]
test ecx, 0x80000
je 0x3052006
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [ebx + 0x3c]
jae 0x3051ff6
movzx eax, cl
lea edx, [esp + 0xa4]
mov dword [esp + 0x14], eax
mov ecx, ebx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0305073f
mov dword [esp + 0xc], eax
test eax, eax
js 0x3051fa3
mov edi, dword [esp + 0x14]
mov edx, 0xff
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x14], edi
cmp edi, edx
jae 0x3051e7e
mov eax, edi
xor eax, ecx
and eax, edx
xor ecx, eax
jmp 0x3051e80
or ecx, edx
movzx eax, cl
mov dword [esp + 0x9c], ecx
cmp esi, eax
jne 0x3051e97
mov edx, dword [esp + 0x24]
xor esi, esi
inc esi
jmp 0x3051e9d
mov edx, dword [esp + 0x28]
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], esi
cmp eax, esi
jbe 0x3051f53
mov edx, dword [edx + 8]
lea esi, [esp + 0x88]
dec eax
lea edi, [esp + 0x64]
mov dword [esp + 0x1c], eax
push 6
pop ecx
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 0x60], eax
rep movsd dword es:[edi], dword [esi]
test edx, edx
jne 0x3051f0f
mov ecx, dword [ebx + 0xac]
lea eax, [ecx + 0x24]
cmp ecx, eax
ja 0x3051ef4
cmp dword [ebx + 0x34], eax
jb 0x3051ef4
mov edx, dword [ebx + 0x38]
add edx, ecx
mov dword [ebx + 0xac], eax
jmp 0x3051efd
mov dword [ebx + 0x50], 0xc0000017
xor edx, edx
test edx, edx
jne 0x3051f18
mov eax, 0xc0000017
mov dword [esp + 0xc], eax
jmp 0x3051fa3
mov ecx, dword [esp + 0xc]
mov eax, dword [edx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xc]
lea esi, [esp + 0x5c]
push 9
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
and dword [edx], 0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x3051f35
mov dword [ecx], edx
jmp 0x3051f37
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, dword [esp + 0x2c]
ja 0x3051eb1
mov ecx, dword [esp + 0x9c]
dec eax
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x3051d2a
mov esi, dword [esp + 0x48]
xor edx, edx
mov eax, esi
mov edi, dword [esp + 0x34]
div dword [ebx + 0x44]
mov dword [esp + 0x84], esi
cmp dword [edi + edx*4], esi
jne 0x3051d9d
jmp 0x3051d2a
test byte [ebx + 0xa4], 8
je 0x305200a
inc dword [esp + 0x14]
jmp 0x3051d23
test byte [ebx + 0xa4], 4
jne 0x3051f8e
mov dword [ebx + 0x50], eax
cmp eax, 0xc0000017
je 0x30520f9
mov ecx, dword [esp + 0x9c]
test ecx, 0x30000000
jne 0x305205c
cmp dword [ebx + 0x1c], 0
je 0x3052018
cmp dword [ebx + 0x20], 0
je 0x3052018
mov edx, dword [esp + 0x18]
cmp edx, dword [ebx + 0x1c]
jbe 0x3052049
cmp edx, dword [ebx + 0x20]
jbe 0x3052030
jmp 0x3052049
mov eax, 0xc0000016
mov dword [esp + 0xc], eax
mov dword [ebx + 0x50], eax
jmp 0x3051fb5
mov eax, 0x40000003
mov dword [esp + 0xc], eax
jmp 0x3051fb5
test byte [ebx + 0xa4], 0x20
jne 0x3051feb
mov eax, 0xc0000091
jmp 0x3051fe2
xor eax, eax
jmp 0x3051ff0
mov eax, 0xc0000029
mov dword [esp + 0xc], eax
mov dword [ebx + 0x50], eax
jmp 0x3051fae
test ecx, 0x80000
je 0x3052045
test ecx, 0x2000000
je 0x3052045
test ecx, 0x4000000
je 0x3052045
and ecx, 0xfff7ff00
or ecx, 0x10000000
mov dword [esp + 0x9c], ecx
jmp 0x305205c
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x88]
mov ecx, ebx
push eax
call fcn.03051361
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x88]
push 6
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x70]
mov dword [esp + 0xa0], eax
test esi, esi
je 0x30520de
mov edi, dword [ebx + 0x74]
test edi, edi
je 0x3052088
mov eax, dword [edi]
mov dword [ebx + 0x74], eax
jmp 0x30520b8
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x6c]
jae 0x30520b6
mov ecx, dword [ebx + 0xa8]
lea eax, [ecx + 0x24]
cmp ecx, eax
ja 0x30520af
cmp dword [ebx + 0x2c], eax
jb 0x30520af
mov edi, dword [ebx + 0x30]
add edi, ecx
mov dword [ebx + 0xa8], eax
jmp 0x30520b8
mov dword [ebx + 0x50], 0xc0000017
xor edi, edi
test edi, edi
je 0x30520f5
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, ecx
div dword [ebx + 0x68]
mov eax, dword [esi + edx*4]
mov dword [edi], eax
mov eax, dword [ebx + 0x70]
mov dword [eax + edx*4], edi
inc dword [ebx + 0x78]
mov eax, dword [esp + 0xc]
mov dword [edi + 4], ecx
jmp 0x30520e0
xor edi, edi
test edi, edi
je 0x30520f9
push 6
add edi, 8
lea esi, [esp + 0x8c]
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x30520f9
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0xac], ecx
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0307c5f7
mov esp, ebp
pop ebp
ret 4