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

Disassembly:
sub esp, 0x204
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x210]
push ebx
mov ebx, dword [esp + 0x20c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x214]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x220]
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 0x47]
mov dword [esp + 0x48], ecx
movzx ecx, word [eax + 0x28]
add ecx, eax
mov eax, dword [esi + 0xed]
push edi
mov edi, dword [ebx + 0xb]
cmp byte [edi + 0x2a], 0
mov dword [esp + 0x60], eax
movsx eax, word [edi + 0x28]
sete byte [esp + 0x27]
dec eax
cmp byte [ebx + 0x17], 1
mov dword [esp + 0x44], edx
mov dl, byte [ebx + 8]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0xac]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xf]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x18], dl
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], 0
jne 0x4f444f
mov ecx, dword [ebp + 0x12]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2e]
sub eax, dword [ebp + 0x2a]
movsx edx, dl
add eax, ecx
neg edx
sbb edx, edx
and edx, 6
add edx, 2
add edx, eax
mov dword [ebp + 0x1a], edx
jmp 0x4f4465
mov ecx, dword [ebp + 0x2e]
sub ecx, dword [ebp + 0x2a]
mov edx, dword [ebp + 0x12]
sub ecx, dword [ebp + 0xe]
mov dword [esp + 0x10], eax
lea eax, [ecx + edx]
mov dword [ebp + 0x1a], eax
mov dword [ebp + 0x16], eax
mov eax, dword [esp + 0x18]
push edi
push eax
call fcn.004597e0
add esp, 8
cmp dword [ebp + 0x1a], eax
jle 0x4f4493
push edi
push ebx
call fcn.0045bd00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f4ee4
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edi
push ecx
call fcn.004597e0
add esp, 8
cmp dword [ebp + 0x1a], eax
jg 0x4f479e
mov dl, byte [ebp + 0x32]
cmp dl, byte [ebp + 0x33]
jne 0x4f462b
test byte [edi + 0x2b], 0x80
jne 0x4f44cc
mov eax, dword [esp + 0x18]
push 1
push edi
push eax
call fcn.00459990
add esp, 0xc
movzx edx, word [ebp + 0x12]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
push ebx
call fcn.0045b4c0
add esp, 0x10
cmp word [esp + 0x28], 0
jne 0x4f454d
cmp byte [ebx + 0x17], 1
jne 0x4f44fa
push edi
push ebx
call fcn.0045bd00
add esp, 8
jmp 0x4f4509
mov eax, dword [esp + 0x10]
push eax
push edi
push ebx
call fcn.0045b1b0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4f4ee4
mov ecx, dword [esp + 0x18]
push 1
push edi
push ecx
call fcn.00459990
movzx eax, word [ebp + 0x12]
lea edx, [esp + 0x34]
push edx
push eax
push edi
push ebx
call fcn.0045b4c0
add esp, 0x1c
cmp word [esp + 0x28], si
jne 0x4f4587
mov ecx, dword [ebx + 4]
push esi
push esi
push esi
push esi
push ecx
push str.ERRIP10
jmp 0x4f4eb2
cmp byte [ebx + 0x17], 4
jne 0x4f4587
cmp byte [esp + 0x18], 0
mov edx, dword [esp + 0x10]
movzx ecx, word [0x6d3930]
je 0x4f456c
movzx eax, word [edi + edx*8 + 0x2c]
jmp 0x4f4571
movzx eax, word [edi + edx*2 + 0x2c]
movzx edx, word [ebp + 0xe]
and eax, ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push edi
push eax
call fcn.0045b660
add esp, 0x10
or byte [edi + 0x2b], 0x40
mov eax, dword [ebx + 0xf]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jg 0x4f45ea
cmp byte [esp + 0x18], 0
movzx edx, word [0x6d3930]
je 0x4f45ae
movzx eax, word [edi + eax*8 + 0x2c]
jmp 0x4f45b3
movzx eax, word [edi + eax*2 + 0x2c]
push 0
push 0
push 0
and eax, edx
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
mov eax, dword [esp + 0x30]
push edi
push ecx
lea ecx, [esp + 0x88]
push ecx
push ebx
mov esi, edi
call fcn.004f1f50
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4f4ee4
jmp 0x4f4708
cmp byte [ebx + 0x17], 1
jne 0x4f4708
movsx eax, byte [esp + 0x18]
movsx edx, word [edi + 0x28]
neg eax
sbb eax, eax
and eax, 6
add eax, 2
imul edx, eax
lea ecx, [edx + edi + 0x2c]
mov edx, dword [esp + 0x18]
push eax
movzx eax, word [ecx + 2]
movzx ecx, word [ecx]
push eax
push ecx
push edi
push edx
call fcn.00459930
add esp, 0x14
jmp 0x4f4708
push edi
push ebx
call fcn.0045bd00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f4ee4
mov eax, dword [ebx + 0xf]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jg 0x4f469c
cmp byte [esp + 0x18], 0
movzx edx, word [0x6d3930]
je 0x4f4662
movzx eax, word [edi + eax*8 + 0x2c]
jmp 0x4f4667
movzx eax, word [edi + eax*2 + 0x2c]
push 1
push 0
and eax, edx
sub eax, dword [ebp + 0x16]
push 0
push eax
mov eax, dword [esp + 0x20]
inc eax
push eax
mov eax, dword [esp + 0x30]
push edi
push ecx
lea ecx, [esp + 0x88]
push ecx
push ebx
mov esi, edi
call fcn.004f1f50
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4f4ee4
mov edx, dword [esp + 0x10]
push 0
inc edx
push edx
push edi
mov eax, ebp
call fcn.004f16c0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f4ee4
cmp byte [ebx + 8], 0
mov eax, dword [esp + 0x10]
je 0x4f46d7
test eax, eax
je 0x4f46eb
movzx eax, word [edi + eax*8 + 0x24]
movzx ecx, word [0x6d3930]
and eax, ecx
jmp 0x4f46f0
test eax, eax
je 0x4f46eb
movzx eax, word [edi + eax*2 + 0x2a]
movzx edx, word [0x6d3930]
and eax, edx
jmp 0x4f46f0
mov eax, dword [0x6d3944]
mov cx, word [ebp + 0x12]
inc cx
mov edx, 0xfffe
and cx, dx
sub ax, cx
movzx eax, ax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
movzx eax, byte [ebp + 0xd]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
add ecx, 0x167
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push edi
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [ebp + 0x12]
mov esi, ebx
call fcn.004f1c70
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4f4ee4
cmp byte [ebx + 0x17], 1
jne 0x4f475a
inc word [edi + 0x28]
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x263], 0
je 0x4f4795
mov ecx, dword [ebx + 4]
push 0
push ecx
lea edx, [eax + 0x10]
push edx
push eax
call fcn.004eb3b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4f4ee4
mov eax, dword [esp + 0x20]
add dword [eax + 0x263], 0xffffffff
js 0x4f4e91
mov byte [ebx + 0x17], 0
jmp 0x4f4f0b
cmp byte [esp + 0x27], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x17], 1
mov dword [ebp + 9], eax
je 0x4f47bc
mov eax, dword [0x6236d0]
inc dword [eax + 0xec]
cmp byte [esi + 0xcf], 0
jne 0x4f47ed
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x24]
push 0xa
push edx
push eax
push ecx
push ebx
call fcn.0045ce40
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4f4ee4
cmp dword [0x62c2c0], 0
je 0x4f499a
cmp byte [esp + 0x27], 0
je 0x4f499a
cmp byte [ebx + 0x17], 1
jne 0x4f499a
cmp dword [0x62c2c4], 0
mov ecx, dword [esp + 0x1c]
jne 0x4f4821
cmp dword [ebx + 0xf], ecx
je 0x4f4847
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x33], 0
je 0x4f499e
mov edx, dword [eax + 0x24]
cmp edx, dword [ebx + 4]
jne 0x4f499e
mov edx, dword [ebx + 0xf]
cmp edx, dword [eax + 0x34]
jne 0x4f499e
mov esi, dword [esp + 0x10]
mov byte [ebp + 8], 1
mov dx, word [0x6d3930]
test esi, esi
jne 0x4f485e
xor eax, eax
jmp 0x4f4894
cmp byte [esp + 0x18], 0
je 0x4f486c
movzx eax, word [edi + esi*8 + 0x24]
jmp 0x4f4871
movzx eax, word [edi + esi*2 + 0x2a]
movzx esi, dx
and eax, esi
mov esi, dword [0x6d3944]
sub esi, eax
movsx eax, byte [esp + 0x18]
neg eax
sbb eax, eax
and eax, 6
add eax, 2
imul eax, dword [esp + 0x10]
add eax, esi
mov esi, dword [ebp + 0x12]
add esi, eax
cmp esi, dword [0x6d392c]
mov esi, dword [ebx + 0xf]
setl byte [esp + 0x16]
cmp esi, ecx
jne 0x4f491c
mov eax, dword [0x6236d0]
inc dword [eax + 0xf4]
mov byte [esp + 0x26], 0
cmp byte [esp + 0x16], 0
je 0x4f48fe
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x13]
mov eax, dword [eax + 0xcb]
imul edx, edx, 0x26
mov eax, dword [edx + eax + 0x12]
mov dword [ebp], eax
test eax, eax
je 0x4f48fe
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
push ebx
lea edx, [esp + 0x23]
lea ecx, [esp + 0x78]
call fcn.004f2340
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f4ee4
cmp byte [esp + 0x17], 0
jne 0x4f49bb
mov eax, dword [ebp + 4]
mov edx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
jmp 0x4f4a82
cmp byte [esp + 0x18], 0
lea eax, [esi + 1]
je 0x4f4947
test eax, eax
je 0x4f493b
movzx eax, word [edi + esi*8 + 0x2c]
movzx esi, dx
and eax, esi
movzx esi, word [edi + ecx*8 + 0x2c]
jmp 0x4f4961
mov eax, dword [0x6d3944]
movzx esi, word [edi + ecx*8 + 0x2c]
jmp 0x4f4961
test eax, eax
je 0x4f4957
movzx eax, word [edi + esi*2 + 0x2c]
movzx esi, dx
and eax, esi
jmp 0x4f495c
mov eax, dword [0x6d3944]
movzx esi, word [edi + ecx*2 + 0x2c]
sub ecx, dword [ebx + 0xf]
movzx edx, dx
and esi, edx
movsx edx, byte [esp + 0x18]
sub eax, esi
neg edx
sbb edx, edx
and edx, 6
add edx, 2
imul ecx, edx
add ecx, eax
cmp ecx, dword [0x6d3988]
mov eax, dword [0x6236d0]
setl byte [esp + 0x26]
inc dword [eax + 0xf0]
jmp 0x4f48bb
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x1a]
mov byte [ebp + 8], 0
cmp ecx, dword [0x6d3950]
jge 0x4f48bb
mov byte [esp + 0x26], 1
jmp 0x4f48c6
cmp byte [esp + 0x26], 0
je 0x4f49fa
mov edx, dword [ebx + 0x13]
mov eax, dword [esp + 0x20]
imul edx, edx, 0x26
mov ecx, dword [eax + 0xcb]
mov eax, dword [edx + ecx + 0x1a]
mov dword [ebp], eax
test eax, eax
je 0x4f49fa
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x17]
push edx
push eax
push ebp
call fcn.004f1070
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f4ee4
cmp byte [esp + 0x17], 0
je 0x4f4a5a
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
lea eax, [esp + 0x1e]
mov esi, ebx
call fcn.004f1290
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f4ee4
cmp byte [esp + 0x16], al
je 0x4f4a5a
cmp dword [esp + 0x48], eax
je 0x4f4e91
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebp
mov eax, ebx
mov byte [edx], 1
call fcn.004f33d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4f4ee4
jmp 0x4f4f0b
lea edx, [esp + 0x6c]
push edx
push ebp
mov ecx, ebx
call fcn.004f2da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f4ee4
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
mov ecx, dword [ebp + 9]
mov dword [esp + 0x10], ecx
mov cx, word [ebp + 0x38]
mov byte [esp + 0x54], 0
add word [eax + 0x28], cx
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp byte [ebx + 0x17], 1
mov dword [esp + 0x40], edx
sete al
sub ax, word [ebp + 0x38]
add word [edi + 0x28], ax
movsx esi, word [ecx + 0x28]
mov al, byte [ebp + 0x40]
dec esi
xor ecx, ecx
cmp edx, dword [ebp]
mov dword [esp + 0x5c], esi
sete cl
xor edx, edx
test al, al
setne dl
mov byte [esp + 0x16], al
cmp edx, ecx
jne 0x4f4b80
movzx edx, word [0x6d3930]
mov cl, byte [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], edx
test cl, cl
je 0x4f4af4
movzx esi, word [eax + esi*8 + 0x2c]
jmp 0x4f4af9
movzx esi, word [eax + esi*2 + 0x2c]
and esi, edx
cmp dword [esp + 0x10], 0
lea eax, [esi + eax + 0x2c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x38], eax
jne 0x4f4b18
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
jmp 0x4f4b2c
test cl, cl
movzx ecx, word [esi + 0x2c]
and ecx, edx
lea eax, [ecx + esi + 0x2c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esp + 0x10], eax
setne al
cmp dword [esp + 0x10], 0
lea eax, [eax + eax + 1]
mov dword [esp + 0x58], eax
jne 0x4f4b78
movzx esi, word [ecx]
movsx eax, si
cdq
sub eax, edx
sar eax, 1
movzx edx, word [ecx + eax*2 - 2]
cmp dx, si
jl 0x4f4b68
movsx ecx, word [ecx + eax*2 - 2]
dec eax
mov dword [esp + 0x30], ecx
jmp 0x4f4c00
movsx eax, dx
movsx ecx, word [ecx + eax*2]
mov dword [esp + 0x30], ecx
jmp 0x4f4c00
movzx eax, word [esi + 0x2c]
and eax, edx
jmp 0x4f4bf4
mov ax, word [0x6d3930]
cmp dword [esp + 0x10], esi
jne 0x4f4b92
mov edx, dword [esp + 0x2c]
jmp 0x4f4bb6
cmp byte [esp + 0x18], 0
mov ecx, dword [esp + 0x1c]
je 0x4f4ba4
movzx edx, word [ecx + esi*8 + 0x2c]
jmp 0x4f4ba9
movzx edx, word [ecx + esi*2 + 0x2c]
movzx ecx, ax
and edx, ecx
mov ecx, dword [esp + 0x1c]
lea edx, [edx + ecx + 0x2c]
xor ecx, ecx
cmp dword [esp + 0x10], esi
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x30]
setne cl
add ecx, 2
mov dword [esp + 0x58], ecx
movzx ecx, ax
movzx eax, word [edx + 0x2c]
and eax, ecx
cmp byte [esp + 0x18], 0
mov dword [esp + 0x3c], ecx
je 0x4f4bec
lea edx, [eax + edx + 0x2c]
mov dword [esp + 0x28], edx
jmp 0x4f4bf4
lea ecx, [eax + edx + 0x2c]
mov dword [esp + 0x28], ecx
mov edx, dword [0x6d3944]
sub edx, eax
mov dword [esp + 0x30], edx
cmp byte [esp + 0x16], 0
je 0x4f4c0a
mov edi, dword [ebp + 4]
cmp byte [ebx + 8], 0
je 0x4f4c26
cmp dword [esp + 0x10], 0
je 0x4f4c3c
mov edx, dword [esp + 0x10]
movzx ecx, word [edi + edx*8 + 0x24]
and ecx, dword [esp + 0x3c]
jmp 0x4f4c42
cmp dword [esp + 0x10], 0
je 0x4f4c3c
mov eax, dword [esp + 0x10]
movzx ecx, word [edi + eax*2 + 0x2a]
and ecx, dword [esp + 0x3c]
jmp 0x4f4c42
mov ecx, dword [0x6d3944]
mov dx, word [ebp + 0x12]
inc dx
mov eax, 0xfffe
and dx, ax
mov eax, dword [esp + 0x20]
sub cx, dx
mov edx, dword [esp + 0x2c]
movzx ebx, cx
movzx ecx, byte [ebp + 0xd]
add eax, 0x167
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [ebp + 0x12]
push eax
mov eax, edi
mov edi, dword [esp + 0x44]
call fcn.004f17f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4f4ee4
cmp byte [esp + 0x27], al
je 0x4f4d41
mov ebx, dword [esp + 0x20]
cmp byte [edi + 9], al
je 0x4f4cfc
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x2c]
je 0x4f4cfc
mov eax, dword [esp + 0x18]
mov ecx, 0x2b
lea esi, [ebx + 0x167]
lea edi, [esp + 0x160]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x5c]
push eax
or edx, 0xffffffff
push ecx
movsw word es:[edi], word [esi]
mov word [esp + 0x214], dx
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x170]
push ecx
push 0
call fcn.00457360
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4f4ee4
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x168]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
push ebx
call fcn.0059d950
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4f4ee4
jmp 0x4f4d5c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
call sub.MSVCR90.dll_memcpy
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
mov word [ebx + 0x213], dx
cmp byte [ebp + 0x40], 0
je 0x4f4ddd
cmp byte [edi + 8], 0
je 0x4f4d8d
test ecx, ecx
je 0x4f4da4
mov eax, dword [ebp + 4]
movzx eax, word [eax + ecx*8 + 0x24]
movzx edx, word [0x6d3930]
and eax, edx
jmp 0x4f4da9
test ecx, ecx
je 0x4f4da4
mov eax, dword [ebp + 4]
movzx eax, word [eax + ecx*2 + 0x2a]
movzx edx, word [0x6d3930]
and eax, edx
jmp 0x4f4da9
mov eax, dword [0x6d3944]
mov dx, word [ebp + 0x12]
inc dx
mov esi, 0xfffe
and dx, si
sub ax, dx
movzx edx, byte [ebp + 0xd]
movzx eax, ax
push eax
mov eax, dword [esp + 0x48]
push eax
push edx
mov edx, dword [ebp]
lea eax, [ebx + 0x167]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [ebp + 4]
jmp 0x4f4e4b
cmp byte [edi + 8], 0
je 0x4f4dfb
test ecx, ecx
je 0x4f4e13
mov edx, dword [esp + 0x50]
movzx eax, word [edx + ecx*8 + 0x24]
movzx edx, word [0x6d3930]
and eax, edx
jmp 0x4f4e18
test ecx, ecx
je 0x4f4e13
mov eax, dword [esp + 0x50]
movzx eax, word [eax + ecx*2 + 0x2a]
movzx edx, word [0x6d3930]
and eax, edx
jmp 0x4f4e18
mov eax, dword [0x6d3944]
mov dx, word [ebp + 0x12]
inc dx
mov esi, 0xfffe
and dx, si
sub ax, dx
movzx edx, byte [ebp + 0xd]
movzx eax, ax
push eax
mov eax, dword [esp + 0x48]
push eax
push edx
mov edx, dword [edi + 4]
lea eax, [ebx + 0x167]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x68]
push ecx
push edx
mov edx, dword [ebp + 0x12]
lea eax, [esp + 0x8c]
push eax
mov esi, edi
call fcn.004f1c70
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4f4ee4
cmp dword [ebx + 0x263], eax
je 0x4f4ecb
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [ebx + 0x10]
push edx
push ebx
call fcn.004eb3b0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4f4ee4
add dword [ebx + 0x263], 0xffffffff
jns 0x4f4ecb
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x263]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
push 0
push 0
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
push str.ERRIP9
push 0x3fa
push 0x145
call fcn.00406f10
add esp, 0x20
mov eax, 0x145
jmp 0x4f4f0d
mov edx, dword [ebp]
push 0
push edx
lea eax, [ebx + 0x10]
push eax
push ebx
call fcn.004eb3b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f4ef7
push 0x3fa
push 0
call fcn.00406f10
add esp, 8
mov eax, esi
jmp 0x4f4f0d
cmp byte [esp + 0x17], 0
mov ecx, dword [esp + 0x40]
sete dl
inc dl
mov dword [edi + 0x18], ecx
mov byte [edi + 0x17], dl
xor eax, eax
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x204
ret