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

Disassembly:
push 0xffffffffffffffff
push 0x862337
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x14c]
mov edi, dword [esp + 0x150]
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
cmp ebp, esi
je 0x4d6c34
lea esi, [ebp + 0x14]
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x80], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x144], 0
test ebx, ebx
jne 0x4d6c66
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004003
jmp 0x4d7d7c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x54]
push 1
add ebp, 0xc
push ebx
push ebp
call ecx
test eax, eax
jne 0x4d7d70
test edi, edi
je 0x4d6c94
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x54]
push edi
push ebp
call eax
test eax, eax
jne 0x4d7d70
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x58]
push ebx
push ebp
call edx
test eax, eax
je 0x4d7d62
test edi, edi
je 0x4d6cbc
mov eax, dword [ebp]
mov ecx, dword [eax + 0x58]
push edi
push ebp
call ecx
test eax, eax
je 0x4d7d62
mov byte [esp + 0x2b], 1
test edi, edi
je 0x4d6cee
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
push 0
push edi
push ebx
push ebp
call eax
mov esi, eax
test esi, esi
js 0x4d6d6a
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4d7d7c
push ebx
lea ecx, [esp + 0x28]
call fcn.004d00c0
mov eax, dword [esp + 0x24]
xor esi, esi
mov byte [esp + 0x144], 1
cmp eax, esi
je 0x4d6d54
mov edx, dword [eax]
push ebp
push ebx
push eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
mov eax, dword [esp + 0x24]
test esi, esi
js 0x4d6d44
mov byte [esp + 0x144], 0
test eax, eax
je 0x4d6d32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4d7d7c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push ebp
push ebx
push eax
call edx
mov eax, dword [esp + 0x24]
xor esi, esi
mov byte [esp + 0x144], 0
cmp eax, esi
je 0x4d6d6c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4d6d6c
xor esi, esi
xor eax, eax
mov dword [esp + 0x1c], eax
cmp ebp, esi
je 0x4d6d8c
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x407ba0
push ebp
call edx
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x4d6ec5
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x18]
mov byte [esp + 0x14c], 3
call eax
test eax, eax
js 0x4d6ea9
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x154], 4
call eax
test eax, eax
jne 0x4d6e91
lea ecx, [ecx]
cmp edi, esi
je 0x4d6df7
mov esi, dword [esp + 0x14]
push edi
call fcn.005c2da0
add esp, 4
cmp eax, esi
je 0x4d6e5f
xor esi, esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x64]
push esi
push edx
push ebx
push ebp
call eax
cmp eax, esi
jl 0x4d6e4c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005c4340
add esp, 4
test al, al
jne 0x4d6e31
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x14]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x60]
push edi
push eax
push ebp
call ecx
mov esi, eax
test esi, esi
jns 0x4d739b
xor esi, esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x4d6e61
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4d6e75
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4d6de0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x144], 3
cmp eax, esi
je 0x4d6ea9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x144], 2
cmp eax, esi
je 0x4d6ec1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x144], 0
cmp eax, esi
je 0x4d6ed9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 0xa
mov dword [esp + 0x24], esi
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x24]
push ecx
push ebp
mov byte [esp + 0x14c], 6
call edx
test eax, eax
js 0x4d70fe
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x154], 7
call eax
test eax, eax
jne 0x4d70e6
test edi, edi
je 0x4d6f5d
mov esi, dword [esp + 0x1c]
push edi
call fcn.005c2da0
add esp, 4
cmp eax, esi
je 0x4d70b1
mov esi, dword [esp + 0x1c]
push ebx
call fcn.005c2da0
add esp, 4
cmp eax, esi
je 0x4d70b1
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x408078
call fcn.004a8f10
lea ecx, [esp + 0x84]
push ecx
call fcn.005c4ec0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xbc], ecx
lea ecx, [esp + 0xa8]
push ebx
push ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
call fcn.005c2e90
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xf0], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xf4], ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 0xf8], edx
push ecx
lea edx, [esp + 0xf4]
push edx
mov dword [esp + 0x104], eax
call fcn.004c17a0
add esp, 0x18
test eax, eax
je 0x4d70a3
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x408028
call fcn.004a8f10
lea eax, [esp + 0x94]
push eax
call fcn.005c4ec0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xd8], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xe0], ecx
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0xec], edx
call fcn.005c2e50
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xd4], ecx
lea ecx, [esp + 0xe0]
mov dword [esp + 0xd8], edx
push ecx
lea edx, [esp + 0xd4]
push edx
mov dword [esp + 0xe4], eax
call fcn.004c17a0
add esp, 0x18
test eax, eax
jne 0x4d70b1
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x68]
call fcn.004c4110
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d70c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4d6f44
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x144], 6
test eax, eax
je 0x4d70fe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x144], 5
test eax, eax
je 0x4d7116
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x64]
xor edi, edi
cmp esi, edi
je 0x4d717f
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x4d73f5
mov edi, dword [esi + 8]
mov eax, dword [ebp]
mov ecx, dword [eax + 0x64]
mov esi, dword [esi]
push 0
push edi
push ebx
push ebp
call ecx
test eax, eax
js 0x4d716f
push edi
call fcn.005c4340
add esp, 4
test al, al
jne 0x4d7156
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x30]
mov edx, dword [ebp]
mov ecx, dword [edx + 0x60]
push eax
push edi
push ebp
call ecx
mov edi, eax
test edi, edi
jns 0x4d73ff
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
push ebx
push ebp
call eax
xor edi, edi
cmp esi, edi
jne 0x4d7120
lea ecx, [esp + 0x64]
mov byte [esp + 0x144], 0
call fcn.004ed5a0
lea ecx, [esp + 0xf0]
call fcn.004cd930
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
lea edx, [esp + 0xb0]
push edx
push ebx
mov byte [esp + 0x14c], 9
call fcn.005c5390
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x90]
add esp, 8
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x4d724d
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4d73f5
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov esi, dword [eax + 8]
cmp dword [esi + 0x24], 0x20
mov eax, dword [esi + 0x20]
jb 0x4d7221
ja 0x4d720d
cmp eax, 0x10000
jb 0x4d7221
push edi
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
call fcn.004cd580
test al, al
je 0x4d7245
push edi
push 1
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call fcn.004cd580
movzx ecx, al
push ecx
push edi
push esi
lea ecx, [esp + 0x100]
call fcn.004ce7b0
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4d71e3
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x4d72ca
jmp 0x4d7260
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4d73f5
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov esi, dword [eax + 8]
cmp dword [esi + 0x24], 0x20
mov eax, dword [esi + 0x20]
jb 0x4d729e
ja 0x4d728a
cmp eax, 0x10000
jb 0x4d729e
push edi
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call fcn.004cd580
test al, al
je 0x4d72c2
push edi
push 1
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.004cd580
movzx edx, al
push edx
push edi
push esi
lea ecx, [esp + 0x100]
call fcn.004ce7b0
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x4d7260
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0xb4]
mov byte [esp + 0x144], 0xa
cmp eax, edi
jbe 0x4d7490
mov esi, dword [esp + 0xb0]
push 0
push 0
push 0
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x5c]
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
push 0
mov edx, dword [ecx]
setne bl
shr eax, 1
push ebx
push 0
push 0
push 0
push esi
push eax
push 1
push 0x200001
push 0
push 0
lea eax, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [edx + 0x18]
call ecx
test eax, eax
js 0x4d7490
xor edi, edi
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push edi
lea ecx, [esp + 0x30]
push ecx
push 1
mov bl, 0xb
push eax
mov byte [esp + 0x154], bl
call edx
test eax, eax
jne 0x4d7478
lea ebx, [ebx]
push 0x90
call fcn.007c8529
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x144], 0xc
cmp eax, edi
je 0x4d741a
mov ecx, dword [esp + 0x2c]
push 0x20
push 0x10000
push ecx
mov ecx, eax
call fcn.004cee00
mov esi, eax
jmp 0x4d741c
mov eax, dword [esp + 0x14]
mov byte [esp + 0x144], 3
test eax, eax
je 0x4d73b3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov byte [esp + 0x144], 2
test eax, eax
je 0x4d73cb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x144], 0
test eax, eax
je 0x4d73e3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4d7d7c
push 0x80004005
call fcn.004a8210
lea ecx, [esp + 0x64]
call fcn.004ed5a0
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x4d7d7c
xor esi, esi
push 1
push 1
lea edx, [esp + 0xb8]
push edx
mov ecx, esi
mov byte [esp + 0x150], bl
call fcn.004cd580
movzx eax, al
push eax
push edi
push esi
lea ecx, [esp + 0x100]
call fcn.004ce7b0
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4d745c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x30]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4d7360
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x144], 0xa
cmp eax, edi
je 0x4d7490
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor ebx, ebx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x20], ebx
call fcn.004ce970
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4d7510
lea ebx, [ebx]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf4]
call fcn.004cd790
mov esi, eax
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc0], ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0xc0]
push 0x428088
push edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
call fcn.004c17a0
add esp, 8
test eax, eax
jne 0x4d750c
cmp dword [esp + 0x1c], ebx
jne 0x4d74b0
jmp 0x4d7510
mov dword [esp + 0x20], esi
lea ecx, [esp + 0xf0]
call fcn.004ce970
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x4d77a5
jmp 0x4d7530
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf4]
call fcn.004cd790
xor edi, edi
mov esi, eax
mov dword [esp + 0x2c], edi
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0x2c]
push edx
push 0x408008
push ebp
mov byte [esp + 0x150], 0xd
call eax
cmp dword [esp + 0x2c], edi
je 0x4d75ba
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.004d1ad0
or dword [esp + 0x34], 1
mov eax, dword [eax]
mov ecx, 0x408008
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d75a8
cmp dx, di
je 0x4d75a4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d75a8
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4d7582
xor eax, eax
jmp 0x4d75ad
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
sete al
test al, al
je 0x4d75ba
mov bl, 1
jmp 0x4d75bc
xor bl, bl
test byte [esp + 0x34], 1
je 0x4d75e8
mov eax, dword [esp + 0x60]
and dword [esp + 0x34], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d75e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4d7780
cmp dword [esp + 0x20], edi
je 0x4d763b
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0xc0]
push 0x40777c
push ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], eax
call fcn.004c17a0
add esp, 8
test eax, eax
je 0x4d763b
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], 0xa
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x14c], 0xf
call edx
test eax, eax
js 0x4d775f
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004d1ad0
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp]
push eax
mov eax, dword [ecx + 0xc]
push edx
push ebp
mov byte [esp + 0x150], 0x10
call eax
xor edi, edi
cmp eax, edi
mov eax, dword [esp + 0x40]
setl bl
add eax, 0xfffffff0
mov byte [esp + 0x144], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d76d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4d7742
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov eax, dword [ebp]
mov eax, dword [eax + 0x64]
push edi
push ecx
push edx
push ebp
call eax
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, edi
jl 0x4d7734
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005c4340
add esp, 4
test al, al
jne 0x4d7709
mov byte [esp + 0x2b], al
cmp byte [esp + 0x154], 0
je 0x4d772c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov edx, dword [edx + 0x60]
push eax
push ecx
push ebp
call edx
mov dword [esp + 0x18], eax
mov ebx, eax
cmp ebx, edi
jge 0x4d7812
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
push ecx
push ebp
call edx
lea ecx, [esp + 0x48]
call fcn.004ed5a0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4d775f
mov dword [esp + 0x14], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x48]
call fcn.004ed5a0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x144], 0xd
cmp eax, edi
je 0x4d7780
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x144], 0xa
cmp eax, edi
je 0x4d7798
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x1c], 0
jne 0x4d7530
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x144], 9
cmp eax, ebx
je 0x4d77bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xb0]
cmp eax, ebx
je 0x4d77d1
push eax
call fcn.00803053
add esp, 4
lea ecx, [esp + 0xf0]
mov byte [esp + 0x144], 0
call fcn.004ce750
cmp byte [esp + 0x2b], 0
je 0x4d7d48
push 0x30
call fcn.007c8529
add esp, 4
cmp eax, ebx
je 0x4d7bf3
mov ecx, eax
call fcn.00597350
mov dword [esp + 0x34], eax
jmp 0x4d7bf9
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x48]
add ebp, 0x60
push eax
mov ecx, ebp
call fcn.004d3a40
mov esi, dword [esp + 0x48]
cmp esi, edi
je 0x4d7897
mov bl, 0x11
nop
xor eax, eax
cmp esi, edi
setne al
cmp eax, edi
je 0x4d73f5
mov ecx, dword [esi + 8]
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x30], eax
cmp ecx, edi
je 0x4d7863
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
push 0x40bdf4
push ecx
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x30]
mov byte [esp + 0x144], bl
cmp eax, edi
je 0x4d787b
mov edx, dword [eax]
push edi
push eax
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x144], 0xf
cmp eax, edi
je 0x4d788f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, edi
jne 0x4d7830
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x4d78be
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x407bb0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0x12
cmp ecx, edi
je 0x4d78db
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
push ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d78f3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x4d7916
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x407bc0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0x13
cmp ecx, edi
je 0x4d7933
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
push ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d794b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x4d796e
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x407bd0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0x14
cmp ecx, edi
je 0x4d798a
push ecx
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d79a2
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x4d79c5
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x407be0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0x15
cmp ecx, edi
je 0x4d79e1
push ecx
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d79f9
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x4d7a1c
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x407bf0
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0x16
cmp ecx, edi
je 0x4d7a38
push ecx
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d7a50
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp eax, edi
je 0x4d7a6f
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x407c00
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x4d7b54
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov edx, dword [ecx]
lea eax, [esp + 0x38]
push eax
push 0x40e214
push 0x430f00
push ecx
mov ecx, dword [edx + 0xc]
mov byte [esp + 0x154], 0x1a
call ecx
test eax, eax
js 0x4d7ab2
mov edx, dword [esp + 0x38]
push edx
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push 0x4310a0
push 0x430f10
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4d7add
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x18]
push ecx
push 0x431090
push 0x430f10
push eax
call edx
test eax, eax
js 0x4d7b08
mov eax, dword [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004cdec0
mov eax, dword [esp + 0x18]
mov byte [esp + 0x144], 0x19
cmp eax, edi
je 0x4d7b20
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
mov byte [esp + 0x144], 0x18
cmp eax, edi
je 0x4d7b38
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov byte [esp + 0x144], 0x17
cmp eax, edi
je 0x4d7b50
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x144], 0xf
cmp ecx, edi
je 0x4d7b68
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
lea ecx, [esp + 0x48]
call fcn.004ed5a0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x144], 0xd
cmp eax, edi
je 0x4d7b89
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x144], 0xa
cmp eax, edi
je 0x4d7ba1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x144], 9
cmp eax, edi
je 0x4d7bb9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xb0]
cmp eax, edi
je 0x4d7bcd
push eax
call fcn.00803053
add esp, 4
lea ecx, [esp + 0xf0]
mov byte [esp + 0x144], 0
call fcn.004ce750
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x4d7d7c
mov dword [esp + 0x34], ebx
mov eax, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x38]
add ecx, 0x34
push ecx
mov ecx, eax
mov byte [esp + 0x148], 0x1b
call fcn.004d4620
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x24]
push ecx
push eax
mov byte [esp + 0x14c], 0x1c
call edx
test eax, eax
js 0x4d7d09
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4d7cfb
mov edi, dword [esp + 0x34]
mov bl, 0x1d
xor ebp, ebp
lea ebx, [ebx]
mov esi, dword [esp + 0x20]
push 0x40b4f4
push esi
call fcn.004c17a0
add esp, 8
test eax, eax
je 0x4d7c9f
lea ecx, [esi + 0x10]
push 0x48b790
push ecx
call fcn.004c17a0
add esp, 8
test eax, eax
je 0x4d7c9f
inc dword [esp + 0x18]
push ebp
push esi
lea ecx, [esp + 0xf8]
call fcn.005d9ac0
push eax
lea ecx, [edi + 0x18]
mov byte [esp + 0x148], bl
call fcn.004d38d0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x144], 0x1c
call fcn.005d9a60
mov edx, dword [esp + 0x20]
push edx
call fcn.005d9c50
mov eax, dword [esp + 0x24]
push ebp
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4d7c70
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d7d09
push eax
call fcn.005d9c50
mov eax, dword [esp + 0x24]
mov byte [esp + 0x144], 0x1b
test eax, eax
je 0x4d7d21
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
cmp eax, dword [ecx + 0x20]
jge 0x4d7d3f
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
add ecx, 0x4c
call fcn.005e3170
lea ecx, [esp + 0x2c]
call fcn.004d6b00
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
neg eax
sbb eax, eax
add eax, 0x80040218
jmp 0x4d7d7c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80040204
jmp 0x4d7d7c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80040208
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0080262b
add esp, 0x134
ret 0xc