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

Disassembly:
push 0xffffffffffffffff
push 0x50a806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x398
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x38]
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
cmp eax, ebp
push edi
mov dword [esp + 0x28], ebx
je 0x4318df
mov ecx, dword [ebx]
cmp ecx, ebp
je 0x4318df
push str._Contents
call fcn.00438840
cmp eax, ebp
mov dword [esp + 0x1c], eax
jne 0x43162f
mov eax, 1
jmp 0x4318e1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [eax + 4]
cmp ecx, 7
jne 0x431655
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.00439260
jmp 0x431756
cmp ecx, 5
jne 0x4318df
mov edi, dword [eax + 0x14]
lea esi, [edi*4]
push esi
call fcn.004dc4af
push esi
mov dword [esp + 0x1c], eax
call fcn.004dc4af
add esp, 8
mov dword [esp + 0x20], eax
test edi, edi
jle 0x4316ce
mov esi, dword [esp + 0x14]
mov ebx, eax
mov eax, esi
sub ebx, eax
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.00438650
test eax, eax
je 0x4316bc
add ebx, esi
mov ecx, eax
push ebx
push esi
call fcn.00439260
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x4316c2
mov dword [esi], 0
inc ebp
add esi, 4
cmp ebp, edi
jl 0x431691
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004dc4af
add esp, 4
xor ebp, ebp
test edi, edi
mov dword [esp + 0x18], eax
jle 0x43173d
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, ebx
mov dword [esp + 0x1c], edi
sub eax, ecx
mov dword [esp + 0x24], eax
mov esi, dword [ebx]
test esi, esi
je 0x43172b
mov edx, dword [esp + 0x18]
mov ecx, dword [ebx + eax]
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + eax]
mov eax, dword [ebx]
push eax
add ebp, edx
call fcn.004dc4d8
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x1c]
add ebx, 4
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x4316f9
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
push eax
call fcn.004dc4d8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004dc4d8
add esp, 8
xor ebp, ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov ebp, 1
lea ecx, [esp + 0x328]
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x7c], ebp
call fcn.004db07c
lea ecx, [esp + 0x394]
mov dword [esp + 0x3b0], 0
call fcn.004db449
mov edx, dword [esp + 0x3b8]
mov eax, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 4]
push eax
lea ecx, [ebx + 0x10]
push ebx
push ecx
push eax
push edx
lea ecx, [esp + 0x64]
mov dword [esp + 0x3c8], ebp
call fcn.0044c0c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.0044c1c0
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x4318ba
mov eax, edi
mov edi, dword [edi]
mov esi, dword [eax + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4318b2
push 0
call fcn.0043dc50
cmp eax, ebp
jne 0x4318b2
mov ecx, dword [esi + 4]
push 2
call fcn.0043dc50
test eax, eax
jne 0x4318b2
mov ecx, dword [esi + 4]
push eax
push ebp
call fcn.0043e380
mov ebx, dword [eax]
mov ecx, ebx
call fcn.004309c0
test eax, eax
je 0x4318b2
cmp dword [esi + 0x18], 4
je 0x4318b2
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov edx, dword [eax + 8]
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [eax]
mov eax, dword [ebx]
push ecx
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0042ed20
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0042ed20
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push edx
call fcn.0042f060
test eax, eax
je 0x4318b2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4318ab
mov eax, dword [ecx + 8]
dec eax
mov dword [ecx + 8], eax
jne 0x4318ab
mov eax, dword [ecx]
push ebp
call dword [eax]
mov dword [esi + 4], 0
test edi, edi
jne 0x4317fe
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004dc4d8
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3b0], 0xffffffff
call fcn.0044c010
mov eax, ebp
jmp 0x4318e1
xor eax, eax
mov ecx, dword [esp + 0x3a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a4
ret 4