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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x10
mov ebx, ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x1b], edx
xor eax, eax
lea edi, [eax + eax*8]
lea ebp, [eax + edi*4]
lea esi, [ebp + ebp]
mov ebp, dword [esi + ebp*2 + 0x66b6ac]
test ebp, ebp
je 0x4f447c
xor ecx, ecx
mov cl, byte [ebp + 0x10]
and ecx, 2
test ecx, 0xfffffffe
jne 0x4f447c
inc eax
lea edi, [eax + eax*8]
lea ebp, [eax + edi*4]
lea esi, [ebp + ebp]
mov ebp, dword [esi + ebp*2 + 0x66b6ac]
test ebp, ebp
je 0x4f447c
xor ecx, ecx
mov cl, byte [ebp + 0x10]
and ecx, 2
test ecx, 0xfffffffe
jne 0x4f447c
inc eax
cmp eax, 0x400
jl 0x4f4429
cmp eax, 0x400
jne 0x4f4485
xor eax, eax
movsx ebp, ax
mov word [ebx + 0x21], bp
lea esi, [ebp + ebp*8]
lea edi, [ebp + esi*4]
lea ebp, [edi + edi]
lea esi, [ebp + edi*2 + 0x66b620]
mov dword [ebp + edi*2 + 0x66b6ac], ebx
push 0
push edx
push esi
mov ecx, dword [esp + 0x30]
call fcn.005261d4
movsx eax, word [ebp + edi*2 + 0x66b628]
neg eax
movsx eax, ax
mov dword [esp + 0xc], eax
mov edx, 1
mov dword [esp + 8], edx
cmp eax, dword [ebp + edi*2 + 0x66b6a4]
jg 0x4f44de
mov edx, dword [ebp + edi*2 + 0x66b6a0]
jmp 0x4f4516
mov ecx, dword [ebp + edi*2 + 0x66b6a0]
call fcn.004dbc10
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
call fcn.004dbf60
mov edx, eax
mov dword [ebp + edi*2 + 0x66b6a0], edx
mov eax, dword [esp + 0xc]
mov dword [ebp + edi*2 + 0x66b6a4], eax
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edx + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edx + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edx + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edx + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edx + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edx + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edx + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edx + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edx + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edx + 0x78], eax
mov esi, dword [esi + 0x7c]
mov dword [edx + 0x7c], esi
lea esi, [edx + 0x80]
mov dword [ebp + edi*2 + 0x66b6a8], esi
mov esi, dword [edx + 4]
mov dword [ebx + 4], esi
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0xc]
cmp esi, 1
jle 0x4f46fb
lea esi, [edx + 0x10]
mov dword [esp], edi
mov dword [esp + 4], ebx
mov ebx, edx
mov edi, dword [esp + 8]
add esi, 0x80
add ebx, 0x80
push 0
push eax
push ebx
mov ecx, dword [esp + 0x30]
call fcn.005261d4
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp]
mov ecx, dword [ebp + ecx*2 + 0x66b6a8]
mov edx, dword [esi]
mov dword [ecx], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov edx, dword [esi + 8]
mov dword [ecx + 8], edx
mov edx, dword [esi + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [esi + 0x10]
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x14], edx
mov edx, dword [esi + 0x18]
mov dword [ecx + 0x18], edx
mov edx, dword [esi + 0x1c]
mov dword [ecx + 0x1c], edx
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
mov edx, dword [esi + 0x28]
mov dword [ecx + 0x28], edx
mov edx, dword [esi + 0x2c]
mov dword [ecx + 0x2c], edx
mov edx, dword [esi + 0x30]
mov dword [ecx + 0x30], edx
mov edx, dword [esi + 0x34]
mov dword [ecx + 0x34], edx
mov edx, dword [esi + 0x38]
mov dword [ecx + 0x38], edx
mov edx, dword [esi + 0x3c]
mov dword [ecx + 0x3c], edx
mov edx, dword [esi + 0x40]
mov dword [ecx + 0x40], edx
mov edx, dword [esi + 0x44]
mov dword [ecx + 0x44], edx
mov edx, dword [esi + 0x48]
mov dword [ecx + 0x48], edx
mov edx, dword [esi + 0x4c]
mov dword [ecx + 0x4c], edx
mov edx, dword [esi + 0x50]
mov dword [ecx + 0x50], edx
mov edx, dword [esi + 0x54]
mov dword [ecx + 0x54], edx
mov edx, dword [esi + 0x58]
mov dword [ecx + 0x58], edx
mov edx, dword [esi + 0x5c]
mov dword [ecx + 0x5c], edx
mov edx, dword [esi + 0x60]
mov dword [ecx + 0x60], edx
mov edx, dword [esi + 0x64]
mov dword [ecx + 0x64], edx
mov edx, dword [esi + 0x68]
mov dword [ecx + 0x68], edx
mov edx, dword [esi + 0x6c]
mov dword [ecx + 0x6c], edx
mov ecx, dword [esp]
mov edx, dword [ebp + ecx*2 + 0x66b6a8]
add edx, 0x70
mov dword [ebp + ecx*2 + 0x66b6a8], edx
inc edi
movsx edx, di
mov ecx, dword [esp + 0xc]
cmp edx, ecx
jl 0x4f4607
mov ebx, dword [esp + 4]
movzx esi, word [ebx + 0x1f]
test esi, esi
jne 0x4f47bd
movsx eax, word [ebx + 0x21]
test eax, eax
jl 0x4f4722
lea edx, [eax + eax*8]
lea ebp, [eax + edx*4]
lea eax, [ebp + ebp]
cmp ebx, dword [eax + ebp*2 + 0x66b6ac]
je 0x4f4733
push dword [ebx + 0x1b]
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.004f4410
movzx esi, word [ebx + 0x1f]
test esi, esi
jne 0x4f47bd
mov al, byte [ebx + 0x10]
and al, 0xfd
mov byte [ebx + 0x10], al
movsx edx, word [ebx + 0x21]
lea ebp, [edx + edx*8]
lea edx, [edx + ebp*4]
lea edi, [edx + edx]
mov ebp, dword [edi + edx*2 + 0x66b6a0]
lea esi, [ebp + 0x10]
add ebp, 0x80
mov eax, dword [edi + edx*2 + 0x66b6a8]
cmp esi, eax
jae 0x4f47bd
mov dword [esp + 0xc], edx
test word [esi], 0xff
jne 0x4f47a1
cmp ebp, esi
jae 0x4f479d
mov edx, esi
sub edx, ebp
cmp edx, 0x2a0
jb 0x4f4796
lea edx, [esi - 0x2a0]
add ebp, 0x230
cmp ebp, edx
jbe 0x4f478c
add ebp, 0x70
cmp ebp, esi
jb 0x4f4796
mov esi, ebp
jmp 0x4f47b9
mov ecx, esi
call fcn.00504664
inc word [ebx + 0x1f]
add esi, eax
mov eax, dword [esp + 0xc]
mov eax, dword [edi + eax*2 + 0x66b6a8]
cmp esi, eax
jb 0x4f476f
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x10]
add esp, 0x10
pop ebx
pop ebp
pop esi
pop edi
ret 8