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

Disassembly:
push 0xffffffffffffffff
push 0x54f225
mov eax, dword fs:[0]
push eax
sub esp, 0x140
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a9e98]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x38], edi
mov esi, dword [esp + 0x164]
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b4b
call fcn.004fc960
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4cffb3
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov ecx, esi
mov dword [esp + 0x15c], 0
call fcn.004de280
test eax, eax
jle 0x4d0011
push esi
mov ecx, edi
call fcn.004ca8f0
mov esi, eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d000a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x4d105d
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00403c60
mov ecx, dword [esi + 0x3c4]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
and cl, 0x20
xor ebx, ebx
cmp cl, 0x20
mov ecx, edi
sete bl
call eax
test ebx, ebx
je 0x4d0045
mov ecx, dword [esp + 0x38]
push esi
call fcn.004cafa0
jmp 0x4cffe1
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004b4e40
mov eax, dword [eax]
push eax
mov byte [esp + 0x160], 1
call fcn.0042c900
mov edi, eax
mov eax, dword [esp + 0x24]
mov ebp, edx
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x15c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4d0098
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
and edi, ebp
cmp edi, 0xffffffff
jne 0x4d00fc
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004b4e40
mov edx, dword [eax]
push edx
lea eax, [esp + 0x18]
push 0x1456
push eax
mov byte [esp + 0x168], 2
call fcn.0041b330
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 0
call fcn.00401f50
mov ecx, dword [esp + 0x14]
push 1
push 2
push ecx
mov ecx, esi
call fcn.004dfd30
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, 0x30003
jmp 0x4d105d
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004b4e40
xor ebx, ebx
mov ecx, esi
mov byte [esp + 0x15c], 3
mov dword [esp + 0x3c], ebx
call fcn.004dd620
test eax, eax
je 0x4d03d5
mov ecx, esi
call fcn.004aeb90
cmp eax, 3
jne 0x4d03d5
mov eax, dword [esp + 0x18]
push eax
call fcn.0042ef10
add esp, 4
test eax, eax
jne 0x4d03d5
push 1
push 1
push 0xcd
mov ecx, esi
call fcn.004dfa30
mov edi, dword [esp + 0x38]
add edi, 0x138
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.00403c60
cmp dword [0x5adb68], ebx
mov byte [esp + 0x15c], 4
push 1
mov ecx, esi
je 0x4d0aca
push 1
push 0x56fe20
call fcn.004dfd30
mov eax, dword [esi + 0x1e4]
push 1
lea ebp, [esi + 0x1e4]
push 1
push eax
mov ecx, esi
call fcn.004dfd30
lea ecx, [esp + 0x34]
push 0x56fe18
push ecx
call fcn.0042d7c0
add esp, 8
mov edx, dword [esp + 0x34]
push edx
mov byte [esp + 0x160], 5
call dword [0x563390]
push 1
push 1
push 0xcf
mov ecx, esi
call fcn.004dfa30
lea ecx, [esp + 0xa0]
call fcn.005002b3
mov eax, dword [esp + 0xa8]
push ebp
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x164], 6
call fcn.005006eb
mov ecx, dword [0x5adb68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xa8]
push eax
call edx
mov ebp, eax
cmp ebp, ebx
je 0x4d02c0
lea ecx, [esp + 0x30]
call fcn.00402020
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x160], 7
call fcn.00402450
mov eax, dword [esp + 0x30]
push 1
push 2
push eax
mov ecx, esi
call fcn.004dfd30
push 1
push 2
push 0xac
mov ecx, esi
call fcn.004dfa30
lea ecx, [esp + 0x30]
call fcn.00401f50
lea ecx, [esp + 0xa0]
mov byte [esp + 0x15c], 5
call fcn.00500585
lea ecx, [esp + 0x34]
call fcn.00401f50
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
mov byte [esp + 0x15c], 3
call eax
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, 0x30003
jmp 0x4d105d
push 1
push 1
push 0x14a
mov ecx, esi
call fcn.004dfa30
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004dfbf0
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004b4db0
push eax
mov ecx, esi
mov byte [esp + 0x160], 8
call fcn.004dfc00
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 6
call fcn.00401f50
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004dfbe0
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004be2c0
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004b4db0
push 4
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x164], 9
call fcn.00402f30
push 0x566a90
push eax
call fcn.00404520
add esp, 8
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401f50
test bl, bl
je 0x4d0394
push 0x566a90
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00403130
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x160], 0xa
call fcn.004be230
lea ecx, [esp + 0x20]
call fcn.00401f50
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 1
call fcn.00401f50
lea ecx, [esp + 0xa0]
mov byte [esp + 0x15c], 5
call fcn.00500585
lea ecx, [esp + 0x34]
call fcn.00401f50
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
mov byte [esp + 0x15c], 3
call edx
xor ebx, ebx
fldz
lea eax, [esp + 0x20]
push eax
fstp qword [esp + 0x5c]
mov ecx, esi
mov dword [esp + 0x64], ebx
call fcn.004b4e40
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push ecx
push eax
mov byte [esp + 0x164], 0xb
call fcn.0042b1f0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 3
call fcn.00401f50
mov ecx, esi
call fcn.004af010
cmp eax, 3
jne 0x4d044a
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, esi
call fcn.004b4db0
mov ecx, dword [esp + 0x3c]
push esi
call fcn.004c0d50
cmp eax, ebx
je 0x4d0aec
push 4
mov ecx, esi
call fcn.004af040
mov ecx, dword [esp + 0x38]
push 1
push 1
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x44], ebx
call fcn.004be7f0
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4d0b8a
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b39
mov ecx, esi
call fcn.004af430
test eax, eax
je 0x4d050d
lea ecx, [esp + 0x2c]
call fcn.00402020
lea edx, [esp + 0x2c]
push edx
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push eax
mov ecx, esi
mov byte [esp + 0x168], 0xc
call fcn.004b4db0
mov ecx, 0x5adbf0
call fcn.004934d0
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004b4db0
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.004317a0
add esp, 8
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401f50
test bl, bl
je 0x4d0502
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004be230
push 0
push 0
push 4
mov ecx, esi
call fcn.004dd820
lea ecx, [esp + 0x2c]
call fcn.00401f50
xor ebx, ebx
lea ecx, [esp + 0x24]
call fcn.00402020
lea ecx, [esp + 0x28]
call fcn.00402020
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
mov byte [esp + 0x164], 0xe
call fcn.004aee40
push eax
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov ecx, esi
call fcn.004b4db0
call fcn.00412260
add esp, 0x10
mov ecx, esi
call fcn.004af460
cmp eax, 1
je 0x4d0b08
cmp eax, 2
jne 0x4d0616
lea ecx, [esp + 0x24]
call fcn.0041ad10
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004aee40
push eax
lea ecx, [esp + 0x58]
call fcn.00412d60
push ebx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x168], 0xf
call fcn.00402c20
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
call fcn.00412e20
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov byte [esp + 0x160], 0x10
call fcn.004b4db0
lea edx, [esp + 0x30]
push edx
push eax
call fcn.004317a0
add esp, 8
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401f50
test bl, bl
je 0x4d05fa
mov eax, dword [esp + 0x30]
push eax
mov ecx, esi
call fcn.004be230
push 0
push 0
push 4
mov ecx, esi
call fcn.004dd820
lea ecx, [esp + 0x30]
call fcn.00401f50
lea ecx, [esp + 0x50]
mov byte [esp + 0x15c], 0xe
call fcn.00401f50
xor ebx, ebx
mov ecx, dword [esp + 0x38]
push esi
call fcn.004bf320
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4d0b78
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004b4e40
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x164], 0x11
call fcn.004aeef0
push eax
mov byte [esp + 0x168], 0xe
call fcn.004b53e0
mov ebp, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x4d0680
xor ebx, ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x40], ebx
call fcn.004114a0
push 1
mov ecx, ebp
mov byte [esp + 0x160], 0x12
call fcn.004ec8c0
mov ecx, dword [esp + 0x38]
push 1
push 1
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004c5810
push 2
mov ecx, ebp
mov edi, eax
call fcn.004ec8c0
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b16
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
je 0x4d0b55
cmp eax, 3
jne 0x4d0773
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.004317a0
add esp, 8
test al, al
je 0x4d0773
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.004aee40
push eax
lea ecx, [esp + 0x6c]
call fcn.00412d60
push ebx
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x168], 0x13
call fcn.00402c20
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x70]
call fcn.00412e20
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, esi
mov byte [esp + 0x160], 0x14
call fcn.004be230
push ebx
push ebx
push 4
mov ecx, esi
call fcn.004dd820
lea ecx, [esp + 0x44]
call fcn.00401f50
lea ecx, [esp + 0x64]
mov byte [esp + 0x15c], 0x12
call fcn.00401f50
cmp edi, 0x30007
je 0x4d08fb
mov edx, edi
and edx, 0xffff0000
cmp edx, 0x10000
lea ecx, [esp + 0x70]
jne 0x4d0b6b
call fcn.004109f0
cmp eax, 1
jne 0x4d07de
push 0
lea ecx, [esp + 0x5c]
call fcn.00430fe0
push eax
lea ecx, [esp + 0x60]
call fcn.00430fb0
push eax
lea ecx, [esp + 0x64]
call fcn.00430f80
push eax
lea ecx, [esp + 0x68]
call fcn.00430f50
push eax
lea ecx, [esp + 0x6c]
call fcn.00430f20
push eax
lea ecx, [esp + 0x70]
call fcn.00431040
mov ebx, dword [esp + 0x3c]
cmp ebx, 1
jne 0x4d083a
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004df390
push 0x566a90
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x168], 0x15
call fcn.00403130
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x160], 0x16
call fcn.004be2c0
lea ecx, [esp + 0x20]
call fcn.00401f50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x15c], 0x12
call fcn.00401f50
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x60]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x68]
push ecx
push edx
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x90], esp
push eax
call fcn.00402c20
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x60]
push ebp
push esi
call fcn.004cf640
cmp ebx, 1
mov edi, eax
jne 0x4d08c9
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004df360
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x160], 0x17
call fcn.004be2c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], 0x12
call fcn.00401f50
mov eax, edi
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x4d0ba3
mov ebx, dword [esp + 0x40]
cmp ebx, 0xffffffff
je 0x4d0ba3
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b16
test ebx, ebx
jne 0x4d090a
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b16
lea ecx, [esp + 0x70]
mov byte [esp + 0x15c], 0xe
call fcn.004115b0
test ebx, ebx
jne 0x4d0680
mov ecx, esi
call fcn.004af010
cmp eax, 6
jne 0x4d0938
push 4
mov ecx, esi
call fcn.004af040
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
push ecx
push edi
mov ecx, esi
call fcn.004ae7f0
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
push ebx
push ebp
mov ecx, esi
call fcn.004b1440
push 0
push 0
push 2
mov ecx, esi
call fcn.004dd820
mov ecx, esi
call fcn.004311f0
test eax, eax
jne 0x4d0b27
mov ecx, esi
call fcn.004de6d0
cmp eax, 8
mov dword [esp + 0x2c], eax
jle 0x4d098e
mov dword [esp + 0x2c], 8
mov edx, dword [esp + 0x4c]
mov eax, edi
sub eax, ebp
sbb edx, ebx
mov dword [esp + 0x68], edx
js 0x4d09c0
jg 0x4d09a5
cmp eax, 0x64
jb 0x4d09c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push eax
call fcn.004ebf10
cmp eax, 1
mov dword [esp + 0x44], 1
je 0x4d09c8
mov dword [esp + 0x44], 0
push 1
mov ecx, esi
call fcn.004ad400
mov ecx, 0x5adbf0
mov edi, eax
call fcn.0048c240
test eax, eax
jne 0x4d0a47
lea ecx, [esp + 0x40]
call fcn.00402020
push 1
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov byte [esp + 0x164], 0x18
call fcn.004ad520
xor eax, eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 0x158
call fcn.004df920
sub edi, dword [esp + 0x20]
cmp edi, 1
jge 0x4d0a36
mov edi, 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x15c], 0xe
call fcn.00401f50
cmp edi, dword [esp + 0x2c]
jge 0x4d0a66
push edi
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.004de700
push 0
push 0
push 4
mov ecx, esi
call fcn.004dd820
cmp dword [esp + 0x2c], 1
jle 0x4d0c23
cmp dword [esp + 0x44], 0
je 0x4d0c1e
mov edi, dword [esp + 0x34]
mov edx, dword [edi]
mov eax, dword [edx + 0x54]
mov ecx, edi
call eax
mov dword [esp + 0x1c], eax
and eax, 0xffff0000
cmp eax, 0x10000
je 0x4d0ba9
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, dword [esp + 0x1c]
jmp 0x4d105d
push 2
push 0xaa
call fcn.004dfa30
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
mov byte [esp + 0x15c], 3
call edx
jmp 0x4d02a4
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, 0x20001
jmp 0x4d105d
lea ecx, [esp + 0x24]
call fcn.0040c3e0
jmp 0x4d0572
lea ecx, [esp + 0x70]
mov byte [esp + 0x15c], 0xe
call fcn.004115b0
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, 0x30004
jmp 0x4d105d
lea ecx, [esp + 0x70]
mov byte [esp + 0x15c], 0xe
call fcn.004115b0
jmp 0x4d0923
mov byte [esp + 0x15c], 0xe
call fcn.004115b0
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, edi
jmp 0x4d105d
lea ecx, [esp + 0x70]
jmp 0x4d0b6b
mov ecx, edi
call fcn.004ec110
push eax
mov ecx, esi
call fcn.004af160
push 0
push 0
push 4
mov ecx, esi
call fcn.004dd820
mov ecx, edi
call fcn.004ec110
sub eax, 1
neg eax
sbb eax, eax
inc eax
je 0x4d0c1e
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ebx
push ebp
push eax
push esi
call fcn.004bf8a0
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, esi
jmp 0x4d105d
cmp dword [esp + 0x2c], 1
je 0x4d0c3b
push 1
mov ecx, esi
call fcn.004de700
push 0
push 0
push 4
mov ecx, esi
call fcn.004dd820
cmp dword [esp + 0x30], 0
jne 0x4d0c4d
mov ecx, dword [esp + 0x34]
push 0
call fcn.004ec860
mov edi, dword [esp + 0x38]
push 0x14
mov ecx, edi
call fcn.004ac100
push 1
push 2
push 0x20005
mov ecx, esi
call fcn.004dda30
test eax, eax
je 0x4d0b27
push 0
push 1
push 0
push esi
mov ecx, edi
call fcn.004c4ac0
mov ecx, esi
call fcn.004aede0
push eax
call fcn.0040c120
add esp, 4
test eax, eax
je 0x4d0cb2
mov ecx, esi
call fcn.004aeed0
test eax, eax
je 0x4d0cab
mov ecx, esi
call fcn.004aeed0
cmp eax, 1
jne 0x4d0cb2
mov ecx, 1
jmp 0x4d0cb4
xor ecx, ecx
test ecx, ecx
mov eax, 1
je 0x4d0d0e
mov edi, dword [0x5ae104]
test edi, edi
jle 0x4d0d0e
test ebx, ebx
jl 0x4d0d0e
jg 0x4d0cd1
test ebp, ebp
jbe 0x4d0d0e
mov eax, edi
cdq
cmp edx, ebx
jl 0x4d0ce0
jg 0x4d0cde
cmp eax, ebp
jbe 0x4d0ce0
mov edi, ebp
push edi
push ebx
push ebp
lea ecx, [esp + 0x20]
push 0x1475
push ecx
call fcn.0041b330
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
add esp, 0x14
push 1
push edx
call fcn.004ee320
mov eax, edi
cdq
sub ebp, eax
sbb ebx, edx
xor eax, eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jl 0x4d0d7e
mov edi, dword [esp + 0x48]
jg 0x4d0d20
test edi, edi
jbe 0x4d0d7e
cmp ebx, ecx
jl 0x4d0d7e
jg 0x4d0d2a
cmp ebp, edi
jb 0x4d0d7e
push 1
push 1
push 0xf4c0
mov ecx, esi
call fcn.004dfa30
mov ebx, dword [esp + 0x4c]
push ebx
push edi
mov ecx, esi
call fcn.004ae7f0
push ebx
push edi
mov ecx, esi
call fcn.004b1440
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, 0x10001
jmp 0x4d105d
push eax
mov eax, dword [esp + 0x34]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebp
push ebx
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x90], esp
push ecx
mov ecx, esi
call fcn.004b4e40
push ecx
mov edx, esp
mov dword [esp + 0x44], esp
push edx
mov ecx, esi
mov byte [esp + 0x188], 0x19
call fcn.004b4db0
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx]
add eax, 0x24
mov eax, dword [eax]
mov byte [esp + 0x184], 0xe
call eax
mov ebp, eax
mov edi, ebp
sar edi, 0x10
cmp edi, 1
je 0x4d0ddf
push 2
mov ecx, esi
call fcn.004af040
mov ecx, dword [esp + 0x34]
call fcn.004ebeb0
lea ebx, [esi + 0xc]
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00403c60
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xac], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
cmp edi, 1
jne 0x4d0eb8
mov ecx, esi
call fcn.004ae790
mov ecx, esi
mov ebx, eax
mov dword [esp + 0x68], edx
call fcn.004ae7c0
cmp eax, ebx
jne 0x4d0e34
cmp edx, dword [esp + 0x68]
je 0x4d0eb8
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.004b4e40
push 0x5c
lea ecx, [esp + 0x34]
mov byte [esp + 0x160], 0x1a
call fcn.00402a20
test eax, eax
jl 0x4d0e66
add eax, 1
push eax
push 0
lea ecx, [esp + 0x38]
call fcn.004043f0
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push 0x13f3
push eax
call fcn.0041b330
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 1
push 1
push ecx
mov ecx, esi
call fcn.004dfd30
mov edx, dword [esp + 0x68]
push edx
push ebx
mov ecx, esi
call fcn.004ae7f0
push 0
push 0
push 2
mov ecx, esi
call fcn.004dd820
lea ecx, [esp + 0x30]
mov byte [esp + 0x15c], 0xe
call fcn.00401f50
lea ecx, [esp + 0xb4]
call fcn.0046e470
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
mov byte [esp + 0x160], 0x1b
call fcn.004ae3b0
mov ebx, dword [esp + 0x38]
push 1
push 1
push 0
push esi
mov ecx, ebx
call fcn.004c4ac0
mov ecx, esi
call fcn.004311f0
test eax, eax
je 0x4d0f11
lea ecx, [esp + 0xb4]
mov byte [esp + 0x15c], 0xe
call fcn.00404b60
jmp 0x4d0b27
cmp edi, 1
jne 0x4d1023
cmp dword [0x5ae14c], 0
je 0x4d0f2b
push esi
mov ecx, ebx
call fcn.004cc8f0
mov ecx, esi
call fcn.004dd620
test eax, eax
je 0x4d0f67
cmp dword [esp + 0x3c], 0
je 0x4d0f67
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004b4e40
mov eax, dword [eax]
push eax
call dword [0x563390]
lea ecx, [esp + 0x1c]
call fcn.00401f50
mov edx, dword [esp + 0x18]
push edx
mov ecx, esi
call fcn.004be2c0
mov ecx, esi
call fcn.004aefe0
test eax, eax
je 0x4d1023
mov ecx, esi
call fcn.004de170
test eax, eax
jne 0x4d1023
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004b4e40
mov eax, dword [eax]
push eax
mov byte [esp + 0x160], 0x1c
call fcn.0042a840
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00401f50
test edi, edi
je 0x4d0fba
mov ebp, 0x10001
jmp 0x4d1023
lea ecx, [esp + 0x3c]
call fcn.00402020
lea ecx, [esp + 0x1c]
push ecx
mov bl, 0x1d
mov ecx, esi
mov byte [esp + 0x160], bl
call fcn.004b4e40
mov edx, dword [eax]
push edx
lea eax, [esp + 0x40]
push 0xe1b3
push eax
mov byte [esp + 0x168], 0x1e
call fcn.0041b330
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x15c], bl
call fcn.00401f50
mov ecx, dword [esp + 0x3c]
push 1
push 2
push ecx
mov ecx, esi
call fcn.004dfd30
lea ecx, [esp + 0x3c]
mov ebp, 0x30003
call fcn.00401f50
lea ecx, [esp + 0xb4]
mov byte [esp + 0x15c], 0xe
call fcn.00404b60
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x24]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
mov eax, ebp
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret 4