Function at 0x4f2d90
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d9825
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov al, byte [esp + 2]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x64], ecx
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov cl, byte [esp + 0x12]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x34], esp
push esi
mov dword [esp + 0x1c4], esi
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401850
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x4f2e29
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
xor esi, esi
push esi
lea ecx, [esp + 0x60]
call fcn.00542e70
push 0xff
lea eax, [esp + 0xac]
push 0x609488
push eax
mov byte [esp + 0x1bc], 1
call fcn.005bcf3d
push ecx
mov cl, byte [esp + 0x22]
mov ebp, esp
mov dword [esp + 0x34], esp
push esi
mov byte [ebp], cl
mov ecx, ebp
call fcn.00401850
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x4f2ead
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
xor esi, esi
sub esp, 0x10
lea eax, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push 0x60af04
mov byte [esp + 0x1d8], 2
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0xb0], esp
push edx
push 0x60cf40
mov byte [esp + 0x1e8], 3
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
push 0x619c18
mov byte [esp + 0x1f8], 4
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x200], 5
mov edi, esp
mov dword [esp + 0x6c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x60df70
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x210], 6
mov edi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x60df70
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 1
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov ecx, dword [0x5e5150]
mov dx, word [eax]
push ecx
add eax, 4
push esi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1bc], 7
mov word [esp + 0x58], dx
call fcn.004120f0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1b4], 1
call fcn.00401850
lea ecx, [esp + 0x4c]
call fcn.00551f50
cmp ax, 2
jne 0x4f300f
push 1
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b4], 0
call fcn.00401850
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x1b0], 0xffffffff
je 0x4f3009
push 0
mov ecx, esi
call fcn.004e70e0
add esi, 0x1c
cmp esi, edi
jne 0x4f2ff5
mov esi, dword [esp + 0x2c]
push esi
jmp 0x4f3a18
lea edx, [esp + 0x84]
lea ecx, [esp + 0x4c]
push edx
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, esi
jne 0x4f302c
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
call fcn.00401850
lea ecx, [esp + 0xa8]
push ecx
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x18], al
mov dword [esp + 0x24], 1
xor ebx, ebx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.004e6490
cmp word [esp + 0x24], bx
mov dword [esp + 0x30], esi
je 0x4f3121
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x64]
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.004f2b90
movzx dx, byte [esp + 0x18]
cmp ax, bx
mov word [esi + 0x14c], dx
jl 0x4f3886
jne 0x4f3117
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1c0], 9
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x60df68
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1c0], 1
call fcn.00543af0
mov dword [esp + 0x24], ebx
jmp 0x4f3121
cmp ax, 0xff
je 0x4f307c
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60df60
call fcn.00558100
lea eax, [esp + 0x70]
push eax
call fcn.00560f40
add esp, 8
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
mov byte [esp + 0x1b4], 0xa
call fcn.00401850
mov edi, 0x619c18
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.004018c0
test al, al
je 0x4f31a1
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
mov esi, 0x619c18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], 0
push 1
lea edx, [esp + 0x40]
sub esp, 0x10
mov byte [esp + 0x1c4], 0xb
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00411fd0
sub esp, 0x10
lea eax, [esp + 0x90]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x1d8], 0xc
call fcn.00411fd0
mov ecx, dword [0x619a60]
mov byte [esp + 0x1d4], 0xb
call fcn.005455c0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0xa8]
and ebp, 0xff
push ebp
push 0x609488
push ecx
call fcn.005bcf3d
add esp, 0xc
push 0
push 0xffff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x38], esp
lea eax, [esp + 0xc4]
push edx
push eax
mov byte [esp + 0x1d4], 0xd
call fcn.00404ee0
push ecx
mov byte [esp + 0x1d0], 0xe
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a60]
mov byte [esp + 0x1d0], 0xb
call fcn.00545cb0
xor esi, esi
xor ebx, ebx
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x4f338b
mov ecx, dword [esp + 0x30]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x4f338b
mov al, byte [edi + ebx]
push 0
cmp al, 1
push 0xffff
push esi
lea ecx, [esp + 0x34]
jne 0x4f331b
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0xf
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00411fd0
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x1d0], 0x10
call fcn.004e6470
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.00558070
jmp 0x4f336f
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0x11
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00411fd0
push ecx
mov byte [esp + 0x1d0], 0x12
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a60]
mov byte [esp + 0x1d0], 0xb
call fcn.00545cb0
inc esi
add ebx, 0x1c
jmp 0x4f327e
mov ecx, dword [0x619a60]
xor edi, edi
push edi
call fcn.00545f70
push 5
mov esi, eax
call fcn.00401520
add esp, 4
cmp si, 0xb
je 0x4f38ce
cmp si, 9
jne 0x4f341d
inc ebp
cmp ebp, 0xff
jle 0x4f3406
push edi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1c0], 0x13
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x60df48
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1c0], 0xb
call fcn.00543af0
jmp 0x4f3818
mov al, byte [esp + 0x18]
mov dword [esp + 0x24], 1
inc al
mov byte [esp + 0x18], al
jmp 0x4f3818
cmp si, 8
jne 0x4f348a
mov al, byte [esp + 0x18]
test al, al
jne 0x4f3473
push edi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x60df48
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1c0], 0xb
call fcn.00543af0
jmp 0x4f3818
mov al, byte [esp + 0x18]
mov dword [esp + 0x24], 1
dec al
mov byte [esp + 0x18], al
jmp 0x4f3818
cmp si, 0xc
jne 0x4f3818
push 0xff
lea edx, [esp + 0xac]
push 0x609488
push edx
call fcn.005bcf3d
mov al, byte [esp + 0x1f]
push ecx
mov ebp, esp
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
mov dword [esp + 0x24], esp
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.004018c0
test al, al
je 0x4f3505
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
sub esp, 0x10
lea eax, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
push 0x60af04
mov byte [esp + 0x1d8], 0x15
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x42]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
push 0x60cf40
mov byte [esp + 0x1e8], 0x16
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xab]
mov ecx, esp
mov dword [esp + 0xc0], esp
push eax
push 0x619c18
mov byte [esp + 0x1f8], 0x17
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x200], 0x18
mov esi, esp
mov dword [esp + 0xcc], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb4], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x210], 0x19
mov esi, esp
mov dword [esp + 0xc0], esp
push ecx
mov ecx, esp
mov dword [esp + 0xc4], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 0xb
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov dx, word [eax]
mov ecx, dword [0x5e5150]
lea esi, [eax + 4]
mov word [esp + 0x4c], dx
mov byte [esp + 0x1b0], 0x1a
mov eax, dword [esi + 8]
mov ebp, eax
cmp ecx, ebp
jae 0x4f360c
mov ebp, ecx
lea edx, [esp + 0x50]
cmp edx, esi
jne 0x4f3631
push ecx
push ebp
lea ecx, [esp + 0x58]
call fcn.00421610
xor ebx, ebx
lea ecx, [esp + 0x50]
push ebx
push ebx
call fcn.00421610
jmp 0x4f36ba
xor ebx, ebx
cmp ebp, ebx
jbe 0x4f3680
cmp ebp, eax
jne 0x4f3680
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4f3647
mov eax, 0x5e514c
cmp byte [eax - 1], 0xfe
jae 0x4f3680
push 1
lea ecx, [esp + 0x54]
call fcn.00401850
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4f3664
mov eax, 0x5e514c
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x58], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x5c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4f36ba
push 1
push ebp
lea ecx, [esp + 0x58]
call fcn.004018c0
test al, al
je 0x4f36ba
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x4f369c
mov esi, 0x5e514c
mov edi, dword [esp + 0x54]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
call fcn.004018a0
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x1b0], 0xb
cmp eax, ebx
je 0x4f36ea
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f36e1
cmp al, 0xff
je 0x4f36e1
dec al
mov byte [ecx], al
jmp 0x4f36ea
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00551f50
cmp ax, 2
jne 0x4f377c
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4f3733
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f372a
cmp al, 0xff
je 0x4f372a
dec al
mov byte [ecx], al
jmp 0x4f3733
push ecx
call fcn.005bc500
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], ebx
cmp ecx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x1b0], 1
je 0x4f376b
mov al, byte [ecx - 1]
test al, al
je 0x4f3761
cmp al, 0xff
je 0x4f3761
dec al
mov byte [ecx - 1], al
jmp 0x4f376b
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
jmp 0x4f307a
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x50]
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x4f3799
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x88]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x4f37e5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f37dc
cmp al, 0xff
je 0x4f37dc
dec al
mov byte [ecx], al
jmp 0x4f37e5
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0x88], ebx
push ecx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x18], al
mov dword [esp + 0x24], 1
xor edi, edi
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x4f383d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f3834
cmp al, 0xff
je 0x4f3834
dec al
mov byte [ecx], al
jmp 0x4f383d
push ecx
call fcn.005bc500
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], edi
cmp ecx, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov byte [esp + 0x1b0], 1
je 0x4f3875
mov al, byte [ecx - 1]
test al, al
je 0x4f386b
cmp al, 0xff
je 0x4f386b
dec al
mov byte [ecx - 1], al
jmp 0x4f3875
dec ecx
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
jmp 0x4f307a
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1c0], 8
mov ecx, esp
mov dword [esp + 0x8c], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1c0], 1
call fcn.00543af0
jmp 0x4f3932
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x4f38f3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f38ea
cmp al, 0xff
je 0x4f38ea
dec al
mov byte [ecx], al
jmp 0x4f38f3
push ecx
call fcn.005bc500
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], edi
cmp eax, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
je 0x4f3924
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f391b
cmp al, 0xff
je 0x4f391b
dec al
mov byte [ecx], al
jmp 0x4f3924
push ecx
call fcn.005bc500
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
xor ebx, ebx
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x4f3957
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f394e
cmp al, 0xff
je 0x4f394e
dec al
mov byte [ecx], al
jmp 0x4f3957
push ecx
call fcn.005bc500
add esp, 4
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1b0], 0xffffffff
mov ebp, eax
mov dword [esp + 0x64], edi
je 0x4f3a17
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
cmp eax, ebx
mov dword [esp + 0x1b0], 0x1c
je 0x4f39d8
push eax
mov ecx, esi
call fcn.0044c9c0
cmp byte [eax], 0
je 0x4f39c5
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.0044c9c0
cmp byte [eax], 0xff
je 0x4f39c5
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.0044c9c0
dec byte [eax]
jmp 0x4f39d8
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.005107f0
lea ecx, [edi + 8]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x1b0], 0x1b
call fcn.005581a0
lea ecx, [edi + 4]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.005581a0
add edi, 0x1c
cmp edi, ebp
mov dword [esp + 0x64], edi
jne 0x4f3984
mov edi, dword [esp + 0x2c]
push edi
call fcn.005bc500
mov ecx, dword [esp + 0x1ac]
add esp, 4
mov ax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret