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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x18]
mov eax, dword [eax + 0x20]
push ebx
push esi
mov dword [ebp - 0xc], edx
mov edx, dword [ecx + 4]
push edi
mov edi, dword [edx + 0x20]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp edi, eax
jl 0x434880
mov dword [ebp - 0x10], eax
mov eax, edi
cdq
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push esi
push ebx
push 0
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
call fcn.004b5250
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp + 0xc], 0
cmp edi, dword [ebp - 8]
je 0x4348bc
mov ecx, dword [ebp - 0xc]
cmp byte [ecx + 0xc], 0
je 0x4348bc
mov dword [ebp + 0xc], 8
mov edi, eax
sub edi, ebx
mov ecx, edx
sbb ecx, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4348e3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
cmp ecx, edx
jg 0x4348ce
jl 0x4348ed
cmp edi, eax
jae 0x4348ce
mov eax, dword [ebp - 8]
cdq
push edx
push eax
push ecx
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
call fcn.004b5780
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
lea ecx, [eax + 1]
mov eax, dword [edx + 4]
mov esi, dword [eax + 4]
mov eax, dword [0x4fa170]
xor edx, edx
div dword [esi + 0x20]
mov dword [ebp - 0x34], ebx
inc eax
cmp ecx, eax
je 0x434a00
mov eax, dword [ebp - 0xc]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4349ac
mov esi, dword [ebp - 4]
call fcn.00434050
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4349ac
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov esi, dword [ecx + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
add esi, dword [ebp - 0x38]
push edx
push eax
push ecx
push ebx
push edi
call fcn.004b4c90
add eax, dword [ebp + 0x10]
push eax
push esi
call fcn.004b4d50
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov ecx, edi
add esp, 0xc
or ecx, ebx
mov byte [eax], 0
jne 0x4349ac
cmp dword [ebp + 0x14], ecx
jne 0x4349ac
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x2c]
bswap edx
mov dword [esi + 0x1c], edx
mov eax, dword [ebp - 4]
mov ecx, eax
test eax, eax
je 0x434a00
test byte [eax + 0x1c], 0x20
je 0x4349fb
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov ebx, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov esi, dword [ebx]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004b5250
push edx
mov edx, dword [esi + 0x48]
push eax
push ebx
call edx
add esp, 0x10
jmp 0x434a00
call fcn.00414640
add edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
adc dword [ebp - 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x4348d7
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret