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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x4f1f75
push eax
call dword [0x564654]
add esp, 4
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x4f1f8c
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4f1f8c
call fcn.004a06f2
mov eax, dword [ebx]
cmp eax, esi
je 0x4f1fa3
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x4f1fa3
push eax
call dword [0x564654]
add esp, 4
mov edi, dword [ebx + 0x1c]
cmp edi, esi
je 0x4f1fb8
cmp edi, 5
je 0x4f1fb8
cmp edi, 6
jne 0x4f28a7
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], esi
cmp dword [ebx], esi
je 0x4f1fea
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x4f1fea
mov dword [ebp - 4], 5
jmp 0x4f21a2
mov dword [ebp - 4], esi
cmp dword [ebx + 0xc], esi
jne 0x4f2020
push 2
push ecx
call fcn.004e4a4f
add esp, 8
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4f21a2
mov eax, dword [ebx + 4]
lea ecx, [ebx + 8]
push ecx
push 1
mov dword [ebx + 0xc], 1
call fcn.004ac04c
add esp, 8
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
jne 0x4f21a2
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
je 0x4f2047
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4f2047
call fcn.004a06f2
mov al, byte [edi + 8]
cmp al, 2
je 0x4f2180
cmp al, 1
je 0x4f2180
movzx ecx, word [ebx + 0x16]
test cl, 0x40
je 0x4f2076
mov edx, dword [ebx + 0x4c]
cmp dword [edx], esi
je 0x4f2076
mov dword [ebp - 4], 0x106
jmp 0x4f2180
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x4f20b8
cmp dword [eax + 0x4c], edi
je 0x4f2096
test byte [eax + 0x16], 0x20
je 0x4f2096
mov dword [ebp - 4], 0x106
jmp 0x4f2180
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x4f20b8
mov edx, 1
nop
cmp dword [eax], edi
je 0x4f20b1
cmp dword [eax + 4], edx
jne 0x4f20b1
cmp byte [eax + 8], dl
jne 0x4f206a
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x4f20a3
mov eax, ecx
and eax, 0xfff7
mov dword [ebp - 4], esi
mov word [ebx + 0x16], ax
cmp dword [ebx + 0x2c], esi
jne 0x4f20d3
or eax, 8
mov word [ebx + 0x16], ax
nop
cmp dword [ebx + 0xc], 0
jne 0x4f20e9
mov eax, ebx
call fcn.004e47b5
mov dword [ebp - 4], eax
test eax, eax
je 0x4f20d3
jmp 0x4f20ef
cmp dword [ebp - 4], 0
je 0x4f210f
cmp byte [ebx + 0x14], 0
jne 0x4f210f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f210f
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.004e3e00
add esp, 4
cmp byte [ebp - 4], 5
jne 0x4f214d
cmp byte [ebx + 0x14], 0
jne 0x4f214d
mov esi, dword [ebx + 4]
add esi, 0x1bc
je 0x4f214d
mov ecx, dword [esi]
test ecx, ecx
je 0x4f214d
mov eax, dword [esi + 8]
test eax, eax
js 0x4f214d
mov edx, dword [esi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x4f2146
inc dword [esi + 8]
jmp 0x4f20d3
mov dword [esi + 8], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x4f2180
cmp byte [edi + 8], 0
jne 0x4f2172
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x4f2172
mov byte [edi + 0x28], 1
mov eax, dword [ebx + 0x48]
lea ecx, [edi + 0x20]
mov dword [edi + 0x2c], eax
mov dword [ebx + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x4f2180
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x4f2192
dec dword [edi + 0xc]
jne 0x4f2192
mov esi, edi
call fcn.004a06d9
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], eax
jne 0x4f21d9
cmp eax, 5
jne 0x4f21d9
cmp edx, esi
je 0x4f21d9
mov dword [ebp - 4], 8
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4f21f2
cmp dword [ebp - 0x18], eax
jge 0x4f225e
mov esi, dword [ebx + 0x10]
cmp esi, dword [ebp - 0x1c]
ja 0x4f225e
cmp dword [ebp - 4], 0
jne 0x4f22a3
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x564710]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x4f2251
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x28]
push edx
push esi
mov eax, 2
call fcn.004d6821
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f2251
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 4]
push 0
push eax
push esi
push ebx
call fcn.004e123b
push edi
mov dword [ebp - 4], eax
call fcn.004e3e00
add esp, 0x14
mov eax, 1
add dword [ebx + 0x10], eax
add dword [ebp - 0x18], eax
jmp 0x4f21e6
cmp dword [ebp - 4], 0
jne 0x4f22a3
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub ecx, eax
inc ecx
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x20], ecx
cmp eax, esi
ja 0x4f22b0
cmp dword [ebx + 0x28], 0
jne 0x4f2709
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0x2c], edx
mov dword [eax + 0x58], ecx
mov dword [ecx + 0x28], 1
jmp 0x4f2709
cmp dword [ebp - 4], 0x65
jne 0x4f2709
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x4f2305
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp byte [esi + 9], 0
je 0x4f22d0
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4f22d0
mov edi, esi
call fcn.004a06f2
mov ecx, dword [esi + 4]
mov dword [ecx + 0x2c], 0
mov ebx, dword [esi + 4]
call fcn.004e0cb0
cmp byte [esi + 9], 0
mov edi, eax
je 0x4f22f4
dec dword [esi + 0xc]
jne 0x4f22f4
call fcn.004a06d9
mov dword [ebp - 4], edi
mov esi, 1
test edi, edi
je 0x4f2305
cmp edi, 0x65
jne 0x4f2322
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
inc eax
mov ecx, edx
push eax
mov eax, dword [ecx + 4]
mov ebx, 1
call fcn.004e119b
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4f2709
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x4f233a
call fcn.004b9500
cmp dword [ebp - 0x30], 5
jne 0x4f2358
mov eax, dword [edi + 4]
push 2
call fcn.004e758b
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f2709
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 8]
jge 0x4f238c
mov eax, dword [ebp - 8]
cdq
idiv ebx
mov ecx, eax
lea eax, [ecx + esi - 1]
cdq
idiv ecx
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x564710]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x4f2397
dec edi
jmp 0x4f2397
mov eax, ebx
cdq
idiv dword [ebp - 8]
mov edi, eax
imul edi, esi
cmp ebx, dword [ebp - 8]
jge 0x4f265d
mov eax, dword [ebp - 0x14]
cdq
mov ecx, eax
mov ebx, edx
push ebx
mov eax, esi
cdq
push ecx
push edx
push eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
call fcn.00465420
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x3c]
mov dword [ebp - 0x18], edx
mov ebx, edi
jmp 0x4f23d3
cmp ebx, esi
ja 0x4f2443
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x564710]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp ebx, eax
je 0x4f243a
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x30]
push edx
push ebx
xor eax, eax
call fcn.004d6821
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f243a
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x94]
cmp ecx, dword [eax + 0x98]
jbe 0x4f2427
push edi
call fcn.004dfe31
add esp, 4
jmp 0x4f242e
mov eax, edi
call fcn.004dfc87
push edi
mov dword [ebp - 4], eax
call fcn.004e3e00
add esp, 4
inc ebx
cmp dword [ebp - 4], 0
je 0x4f23d3
jmp 0x4f245b
cmp dword [ebp - 4], 0
jne 0x4f245b
mov eax, dword [ebp - 0x10]
push 1
push 0
call fcn.004e32c5
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov esi, dword [0x564710]
mov ecx, dword [ebp - 0x28]
lea eax, [esi + edx]
cdq
cmp edx, ecx
jg 0x4f247b
jl 0x4f2476
cmp eax, dword [ebp - 0x2c]
jae 0x4f247b
mov dword [ebp - 0x34], edx
jmp 0x4f2481
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [esi + ecx]
cdq
mov esi, eax
mov ebx, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x4f2709
jmp 0x4f24a6
mov ebx, dword [ebp - 8]
cmp ebx, dword [ebp - 0x34]
jg 0x4f25d2
jl 0x4f24ba
cmp esi, dword [ebp - 0x38]
jae 0x4f25d2
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x1c], 0
call fcn.00454150
mov edi, dword [ebp - 0x20]
inc eax
push eax
xor eax, eax
call fcn.004d6821
mov edi, dword [ebp - 0x1c]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f2508
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push ebx
mov ebx, dword [ebp - 0x14]
push esi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov dword [ebp - 4], eax
test edi, edi
je 0x4f25b7
test byte [edi + 0x18], 0x40
mov ebx, dword [edi + 0x10]
je 0x4f2559
mov ecx, dword [ebx + 0x88]
dec dword [ebx + 0x78]
mov dword [edi + 0xc], ecx
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], edi
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0x14]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00465420
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push esi
call edx
mov esi, dword [ebp - 0xc]
add esp, 0x10
jmp 0x4f2560
mov eax, edi
call fcn.0049e2cf
cmp dword [ebx + 0x78], 0
jne 0x4f25b7
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x4f25b7
mov al, byte [ebx + 0x10]
cmp al, 6
je 0x4f25b2
test al, al
je 0x4f25b2
cmp al, 2
jb 0x4f25a0
mov eax, dword [0x56a22c]
test eax, eax
je 0x4f258c
call eax
mov eax, ebx
call fcn.004e39f2
mov eax, dword [0x56a230]
test eax, eax
je 0x4f25b2
call eax
jmp 0x4f25b2
cmp byte [ebx + 4], 0
jne 0x4f25b2
push 0
push 0
call fcn.004aa6b6
add esp, 8
call fcn.004b2dc8
add esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
adc dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], esi
je 0x4f24a3
jmp 0x4f2709
cmp dword [ebp - 4], 0
jne 0x4f2709
mov esi, dword [ebp - 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x18]
lea eax, [ebp - 0x40]
push eax
push esi
call ecx
add esp, 8
test eax, eax
jne 0x4f2614
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x3c], ecx
jl 0x4f2614
jg 0x4f2604
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x2c]
jbe 0x4f2614
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
call edx
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f2709
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x4f2645
mov eax, dword [ecx]
push 0
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x4f2641
xor eax, eax
jmp 0x4f2645
test eax, eax
jne 0x4f266f
cmp byte [esi + 7], 0
jne 0x4f266f
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x4f266c
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.004e32c5
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f2709
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x4f2702
cmp byte [edi + 9], al
je 0x4f2697
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x4f2697
call fcn.004a06f2
mov cl, 2
cmp byte [edi + 8], cl
jne 0x4f26eb
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x4f27fb
cmp byte [esi + 0x10], cl
jne 0x4f27cb
cmp byte [esi + 4], al
je 0x4f27cb
cmp byte [esi + 5], 1
jne 0x4f27cb
mov byte [esi + 0x10], 1
dec dword [edi + 0x14]
mov ecx, dword [ebx + 0x3c]
push ecx
mov byte [ebx + 0x14], 1
call fcn.0049dfdc
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.004e4e49
cmp byte [edi + 9], 0
je 0x4f2702
dec dword [edi + 0xc]
jne 0x4f2702
mov esi, edi
call fcn.004a06d9
mov dword [ebp - 4], 0x65
cmp dword [ebp - 0x24], 0
je 0x4f2888
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 2
jne 0x4f2773
cmp byte [edi + 9], 0
mov esi, dword [edi + 4]
je 0x4f2736
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4f2736
call fcn.004a06f2
cmp byte [esi + 0x11], 0
je 0x4f2745
call fcn.004f0d37
test eax, eax
jne 0x4f2761
cmp byte [esi + 0x13], 0
je 0x4f2753
mov edx, dword [esi]
mov eax, dword [esi + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [esi]
push 0
push 0
call fcn.004e32c5
add esp, 8
cmp byte [edi + 9], 0
je 0x4f2773
dec dword [edi + 0xc]
jne 0x4f2773
mov esi, edi
call fcn.004a06d9
mov edi, dword [ebx + 0x18]
cmp byte [edi + 8], 0
je 0x4f2888
cmp byte [edi + 9], 0
je 0x4f2794
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4f2794
call fcn.004a06f2
cmp byte [edi + 8], 2
jne 0x4f2871
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x4f2876
cmp byte [esi + 0x10], 2
jne 0x4f2823
cmp byte [esi + 4], al
je 0x4f2823
cmp byte [esi + 5], 1
jne 0x4f2823
mov byte [esi + 0x10], 1
jmp 0x4f2857
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
mov ebx, esi
call fcn.004aa6b6
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4f27f1
cmp ecx, 0xa
jne 0x4f27f8
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4f26d1
cmp byte [edi + 9], 0
je 0x4f2818
dec dword [edi + 0xc]
jne 0x4f2818
mov esi, edi
call fcn.004a06d9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0x4f2709
movzx ecx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push ecx
mov ebx, esi
call fcn.004aa6b6
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4f2849
cmp ecx, 0xa
jne 0x4f2850
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x4f2876
dec dword [edi + 0x14]
mov edx, dword [ebx + 0x3c]
push edx
mov byte [ebx + 0x14], 1
call fcn.0049dfdc
add esp, 4
mov dword [ebx + 0x3c], 0
call fcn.004e4e49
cmp byte [edi + 9], 0
je 0x4f2888
dec dword [edi + 0xc]
jne 0x4f2888
mov esi, edi
call fcn.004a06d9
cmp dword [ebp - 4], 0xc0a
jne 0x4f2898
mov dword [ebp - 4], 7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1c], ecx
mov edi, ecx
mov ebx, eax
xor esi, esi
mov eax, dword [ebx]
cmp eax, esi
je 0x4f28be
mov eax, dword [eax + 0xc]
cmp eax, esi
je 0x4f28be
push eax
call dword [0x56465c]
add esp, 4
mov esi, dword [ebx + 0x18]
cmp byte [esi + 9], 0
je 0x4f28d4
dec dword [esi + 0xc]
jne 0x4f28d4
call fcn.004a06d9
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4f28e8
push eax
call dword [0x56465c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret