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

Disassembly:
push 0xffffffffffffffff
push 0x536a62
mov eax, dword fs:[0]
push eax
mov eax, 0x13d0
call fcn.00518bb0
mov eax, dword [0x5801d4]
xor eax, esp
mov dword [esp + 0x13cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5801d4]
xor eax, esp
push eax
lea eax, [esp + 0x13e4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x13f4]
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esi + 0x804], 1
call fcn.004e1c5d
mov ecx, dword [eax + 4]
call fcn.004de8ec
cmp dword [esi + 0xb0], 0
mov dword [esp + 0x13ec], 0
je 0x4b9de1
mov eax, dword [esi + 0x338]
mov ebp, dword [0x53d924]
push 0xffff0000
push 0
push 0x1101
push eax
call ebp
mov ecx, dword [esi + 0x38c]
push 0
push 0
push 0x184
push ecx
call ebp
call fcn.004e3232
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4b9ad2
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x54f0
mov byte [esp + 0x13f0], 1
call fcn.004e31aa
test eax, eax
je 0x4b9b07
push 0x54f0
push eax
lea ecx, [esp + 0x2c]
call fcn.00402b60
mov ecx, dword [esp + 0x24]
push 0x1f4
push 0
push 0
push ecx
lea edi, [esi + 0x318]
push edi
call fcn.004476c0
mov edx, dword [esi + 0x338]
add esp, 0x14
mov ebx, eax
push ebx
push 9
push 0x110b
push edx
call ebp
mov eax, dword [esi + 0x868]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x22
push eax
mov ecx, edi
call fcn.004dfe2a
push 0
push 0
push 0
push 1
push 1
push 0
push 0x22
push ebx
mov ecx, edi
mov dword [esi + 0x868], ebx
call fcn.004dfe2a
lea eax, [esp + 0xfd0]
push eax
push 2
call fcn.004121b0
lea ecx, [esp + 0xfd8]
push 0
push ecx
call fcn.00448ce0
add esp, 0x10
mov ebx, eax
push 0x5421
mov dword [esp + 0x3c], ebx
call fcn.004e31aa
test eax, eax
je 0x4b9bb3
push 0x5421
push eax
lea ecx, [esp + 0x2c]
call fcn.00402b60
push 1
push 0x53eeb8
push 0x542128
push ebx
call fcn.00448440
add esp, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x4b9cb3
lea esp, [esp]
mov ebx, dword [esp + 0x2c]
mov edx, dword [0x57d17c]
push ebx
push 0x542128
push edx
lea eax, [esp + 0x6f4]
push eax
call dword [0x53d764]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
push 0x54211c
lea edx, [esp + 0x700]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.00448340
mov edx, dword [esp + 0x54]
push ebx
push 0
push 0
push edx
push edi
call fcn.004476c0
add esp, 0x38
cmp dword [esi + 0xb4], 0
mov ebx, eax
jne 0x4b9c93
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x582884]
jne 0x4b9c93
mov ecx, dword [esi + 0x338]
push ebx
push 9
push 0x110b
push ecx
call ebp
mov eax, dword [esi + 0x868]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x22
push eax
mov ecx, edi
call fcn.004dfe2a
push 0
push 0
push 0
push 1
push 1
push 0
push 0x22
push ebx
mov ecx, edi
mov dword [esi + 0x868], ebx
call fcn.004dfe2a
mov edx, dword [esp + 0x30]
push edx
call fcn.004d7727
mov eax, dword [esp + 0x30]
inc eax
add esp, 4
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
jl 0x4b9be0
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push 0
push eax
call fcn.004492b0
add esp, 0xc
cmp dword [esi + 0xb4], 0
je 0x4b9d1e
mov ebx, dword [0x57d29c]
test ebx, ebx
jle 0x4b9d88
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [case.0x4d19d8.0]
mov eax, dword [edi + ecx + 4]
mov edx, dword [esi + 0x38c]
push eax
push 0
push 0x180
push edx
call ebp
mov ecx, dword [case.0x4d19d8.0]
mov ecx, dword [edi + ecx]
mov edx, dword [esi + 0x38c]
push ecx
push eax
push 0x19a
push edx
call ebp
add edi, 0xc
sub ebx, 1
jne 0x4b9ce0
jmp 0x4b9d88
mov eax, dword [0x57c244]
xor ebx, ebx
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4b9d88
lea ecx, [ecx]
mov eax, dword [0x57c240]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esi + 0x830]
mov eax, dword [esi + 0x844]
mov edi, dword [ecx]
push edx
push eax
lea eax, [esi + 0x2c4]
push eax
push edi
call fcn.004b59b0
add esp, 0x10
test eax, eax
je 0x4b9d81
mov ecx, dword [esi + 0x38c]
push edi
push 0
push 0x180
push ecx
call ebp
test eax, eax
jl 0x4b9d81
mov edx, dword [esi + 0x38c]
push ebx
push eax
push 0x19a
push edx
call ebp
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x4b9d30
mov eax, dword [esi + 0x290]
push 0
push 0
push 0x146
push eax
call ebp
mov ebx, eax
xor edi, edi
test ebx, ebx
jle 0x4b9dce
mov ecx, dword [esi + 0x290]
push 0
push edi
push 0x150
push ecx
call ebp
cmp eax, 3
jne 0x4b9dc9
mov edx, dword [esi + 0x290]
push 0
push edi
push 0x14e
push edx
call ebp
inc edi
cmp edi, ebx
jl 0x4b9da2
mov eax, dword [esp + 0x24]
mov dword [esi + 0x804], 0
jmp 0x4bac03
call fcn.004e3232
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4b9dfb
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
mov byte [esp + 0x13f8], 2
call fcn.00407c40
add esp, 0xc
test eax, eax
jne 0x4b9e33
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x4b9e37
mov edi, dword [esp + 0x28]
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, ebx
imul eax, eax, 0x3e8
mov ebp, edi
sub ebp, eax
xor eax, eax
lea ecx, [esp + 0xbc0]
mov dword [esp + 0x60], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esi + 0x3c0]
lea ecx, [esp + 0xfd0]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebp
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4b9ea4
cmp dword [esp + 0x13f8], 0
jne 0x4b9f45
test edi, edi
jge 0x4b9f4d
mov eax, dword [esp + 0x24]
lea edx, [esi + 0x3c0]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4b9ed5
lea ebp, [esi + 0x3c0]
mov dword [esp + 0x20], ebp
mov eax, ebp
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
jl 0x4ba4b9
mov edi, dword [esp + 0x38]
mov edx, dword [ebx*4 + 0x581568]
imul edi, edi, 0x12ac
cmp dword [edi + edx + 0x7c], ecx
lea eax, [edi + edx]
jle 0x4ba44c
push 0xffffffffffffffff
push ecx
push 0x54e9
call fcn.004e411e
lea ecx, [esp + 0x18]
mov dword [esi + 0x804], 0
call fcn.00402910
jmp 0x4bac27
test edi, edi
jl 0x4ba09d
mov edx, dword [ebx*4 + 0x581568]
mov edi, ebp
imul edi, edi, 0x12ac
cmp dword [edi + edx + 0x7c], 0
lea eax, [edi + edx]
jle 0x4b9f83
push 0xffffffffffffffff
push 0
push 0x54e9
call fcn.004e411e
mov dword [esi + 0x804], 0
jmp 0x4babff
mov ebp, 1
add dword [eax + 0x78], ebp
cmp dword [esp + 0x13fc], 0
je 0x4b9fb1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.00403ba0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4ba089
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x4ba03c
cmp dword [esp + 0x1400], 0
jne 0x4ba03c
mov ecx, dword [ebx*4 + 0x581568]
mov eax, dword [ecx + edi + 0x38]
add ecx, edi
test eax, eax
je 0x4ba03c
mov edx, 0x2f
cmp dx, word [eax]
jne 0x4b9ff0
push eax
lea ecx, [esp + 0x1c]
call fcn.00403390
jmp 0x4ba03c
add ecx, 0x84
push ecx
lea ecx, [esp + 0x1c]
call fcn.00403390
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x4ba027
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00412870
cmp ax, 0x2f
je 0x4ba027
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.00402dc0
mov ecx, dword [ebx*4 + 0x581568]
mov edx, dword [edi + ecx + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.004033d0
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x7b4]
push eax
push ecx
mov ecx, dword [ebx*4 + 0x581568]
add ecx, edi
call fcn.0043e5a0
test eax, eax
je 0x4ba06e
lea edx, [esp + 0x7b0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00403390
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push 1
push eax
push ecx
lea eax, [esi + 0x3c0]
push eax
call fcn.00404820
add esp, 0x10
mov edx, dword [ebx*4 + 0x581568]
dec dword [edi + edx + 0x78]
lea eax, [edi + edx + 0x78]
jmp 0x4ba3af
mov edi, dword [esp + 0x24]
push edi
call fcn.00411aa0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ba387
mov eax, dword [edi]
lea edx, [esp + 0x2c4]
xor ecx, ecx
push edx
mov dword [esp + 0x2c8], eax
mov word [esp + 0x2cc], cx
call dword [0x53d39c]
test eax, eax
je 0x4ba0ee
cmp eax, 1
je 0x4ba0ee
mov eax, 0x5c
cmp ax, word [edi]
jne 0x4ba3b3
push 0x553140
call dword [0x53d26c]
mov ebp, eax
mov dword [esp + 0x3c], ebp
test ebp, ebp
je 0x4ba14a
mov edi, dword [0x53d528]
push 0x55312c
push ebp
call edi
push 0x55318c
push ebp
mov dword [0x5b3cac], eax
call edi
push 0x55317c
push ebp
mov dword [0x5b3cb0], eax
call edi
push 0x553168
push ebp
mov dword [0x5b3cb4], eax
call edi
push 0x553158
push ebp
mov dword [0x5b3cb8], eax
call edi
mov dword [0x5b3cbc], eax
mov eax, dword [0x5b3cac]
test eax, eax
je 0x4ba3b3
cmp dword [0x5b3cb0], 0
je 0x4ba3b3
cmp dword [0x5b3cb4], 0
je 0x4ba3b3
cmp dword [0x5b3cb8], 0
je 0x4ba3b3
cmp dword [0x5b3cbc], 0
je 0x4ba3b3
mov ebp, dword [esp + 0x24]
mov ecx, 0x5c
cmp cx, word [ebp]
jne 0x4ba2d6
mov ecx, ebp
mov eax, 0x553150
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ba1cb
test dx, dx
je 0x4ba1c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ba1cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ba1a5
xor eax, eax
jmp 0x4ba1d0
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
test eax, eax
sete dl
mov edi, edx
mov dword [esp + 0x30], edi
test edi, edi
je 0x4ba2ac
lea ecx, [esp + 0x1c]
call fcn.00402b00
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x13f4], 3
call fcn.004b98c0
mov ebp, 1
add esp, 8
cmp eax, ebp
jne 0x4ba234
mov eax, dword [esp + 0x1c]
xor edi, edi
lea edx, [esp + 0xbc0]
mov dword [esp + 0x30], edi
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ba223
jmp 0x4ba26a
cmp eax, 2
jne 0x4ba26a
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xbc0]
mov dword [esp + 0x20], ebp
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ba250
lea edx, [esp + 0xbc0]
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13ec], 2
call fcn.00402910
test edi, edi
jne 0x4ba380
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebp
push ebp
push 2
call dword [0x5b3cb4]
test eax, eax
jne 0x4ba380
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebp
jmp 0x4ba387
lea edx, [esp + 0xbc0]
mov eax, ebp
sub edx, ebp
jmp 0x4ba2c0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ba2c0
mov ebp, 1
jmp 0x4ba283
xor edx, edx
mov word [esp + 0x2c8], dx
xor ecx, ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x7b4], cx
lea ecx, [esp + 0x7b4]
push ecx
lea edx, [esp + 0x2cc]
push edx
mov dword [esp + 0x4c], 0x200
call eax
cmp word [esp + 0x7b0], 0
je 0x4ba3b3
xor eax, eax
push 0
push 0x55d6c4
mov dword [esp + 0x58], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push 0x55d6c4
lea edx, [esp + 0x58]
lea eax, [esp + 0x2d0]
lea ecx, [esp + 0x7bc]
push edx
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call dword [0x5b3cb0]
test eax, eax
jne 0x4ba3b3
push ebp
call fcn.00411aa0
add esp, 4
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x4ba3b3
mov eax, dword [esp + 0x24]
mov ecx, dword [0x582758]
push eax
call fcn.00415ef0
mov ecx, dword [0x582758]
push 0
lea eax, [esi + 0x3c0]
push eax
call fcn.00411c10
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x4ba419
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x4ba3fc
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x12ac
add ecx, dword [eax*4 + 0x581568]
push 0x5401
call fcn.00437aa0
mov dword [esi + 0x804], 0
jmp 0x4babff
push 0xffffffffffffffff
push 0
push 0x5469
call fcn.004e411e
mov dword [esi + 0x804], 0
jmp 0x4babff
mov ecx, dword [0x582758]
push 1
lea ebp, [esi + 0x3c0]
push ebp
call fcn.00415a70
cmp dword [esp + 0x34], 0
mov edi, dword [esp + 0x28]
je 0x4b9ee4
lea eax, [esp + 0xbc0]
mov dword [esp + 0x20], eax
jmp 0x4b9ef0
inc dword [eax + 0x78]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebx*4 + 0x581568]
push edx
add ecx, edi
call fcn.0043e840
mov ecx, dword [ebx*4 + 0x581568]
dec dword [edi + ecx + 0x78]
lea ecx, [edi + ecx + 0x78]
test eax, eax
jne 0x4ba545
mov ecx, dword [ebx*4 + 0x581568]
push 0x5477
add ecx, edi
call fcn.00437aa0
lea eax, [esp + 0xfd0]
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ba4a5
jmp 0x4b9f2d
cmp dword [esp + 0x34], ecx
jne 0x4ba545
lea edx, [esp + 0x2d8]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4ba4d0
lea edx, [esp + 0x2d8]
push edx
call fcn.00410570
add eax, eax
mov ecx, 0x543724
mov edx, eax
add esp, 4
sub edx, ecx
lea edx, [esp + edx + 0x2d8]
movzx eax, word [ecx]
mov word [ecx + edx], ax
add ecx, 2
test ax, ax
jne 0x4ba501
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x2dc]
push edx
call dword [0x53d2e0]
mov dword [esp + 0x6c], eax
cmp eax, 0xffffffff
jne 0x4ba545
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x5477
call fcn.00448800
add esp, 0xc
jmp 0x4b9f2d
cmp dword [0x5a9d24], 0
mov edi, dword [0x53d924]
mov dword [esp + 0x40], 0
jne 0x4ba565
cmp dword [0x5b3514], 0
je 0x4ba5a5
mov ecx, dword [esi + 0x338]
push 0
push 9
push 0x110a
push ecx
call edi
test eax, eax
je 0x4ba590
push 0x20
push eax
lea ecx, [esi + 0x318]
call fcn.004dfda6
and eax, 0x20
mov dword [esp + 0x40], eax
mov edx, dword [esi + 0x338]
push 0xffff0000
push 0
push 0x1101
push edx
call edi
mov eax, dword [esi + 0x38c]
push 0
push 0
push 0x184
push eax
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
test eax, eax
jl 0x4ba61c
lea ebx, [eax + 0x64]
movzx eax, word [ecx]
test ax, ax
je 0x4ba5f5
mov edi, edi
cmp ax, 0x3a
je 0x4ba5e4
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4ba5d0
jmp 0x4ba5f1
cmp word [ecx], 0
mov dword [esp + 0x20], ecx
je 0x4ba5f5
add ecx, 2
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x13f8], 0
je 0x4ba642
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x848]
je 0x4ba642
mov edx, ecx
mov ecx, esi
mov dword [esi + 0x848], edx
call fcn.004b8320
jmp 0x4ba642
mov eax, 0x5c
cmp ax, word [ecx]
jne 0x4ba62b
lea ebx, [eax - 0x5a]
jmp 0x4ba642
mov edx, dword [esp + 0x24]
movzx ax, byte [edx]
movzx ecx, ax
push ecx
call fcn.0041ee10
add esp, 4
movzx ebx, ax
mov edx, dword [esi + 0x290]
mov edi, dword [0x53d924]
push 0
push 0
push 0x147
push edx
call edi
push 0
push eax
mov eax, dword [esi + 0x290]
push 0x150
push eax
call edi
cmp ebx, eax
je 0x4ba6d1
mov ecx, dword [esi + 0x290]
push 0
push 0
push 0x146
push ecx
call edi
mov ebp, eax
xor edi, edi
test ebp, ebp
jle 0x4ba6d1
lea esp, [esp]
mov edx, dword [esi + 0x290]
push 0
push edi
push 0x150
push edx
call dword [0x53d924]
cmp ebx, eax
je 0x4ba6b0
inc edi
cmp edi, ebp
jl 0x4ba690
jmp 0x4ba6d1
mov eax, dword [esi + 0x290]
push 0
push edi
push 0x14e
push eax
call dword [0x53d924]
mov dword [esi + 0x840], edi
mov dword [esi + 0x83c], edi
xor edx, edx
xor edi, edi
xor eax, eax
cmp dword [esp + 0x28], edx
mov dword [esp + 0x1c], edx
lea ebx, [edi + 1]
jl 0x4ba80f
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
imul ecx, ecx, 0x12ac
mov ebp, dword [ebp*4 + 0x581568]
cmp dword [ecx + ebp + 0x74], 3
jne 0x4ba80f
mov ebp, dword [esp + 0x20]
cmp word [ebp], dx
je 0x4ba799
jmp 0x4ba720
movzx ecx, word [ebp + edi*2]
cmp cx, 0x5d
je 0x4ba799
test cx, cx
je 0x4ba750
cmp cx, 0x2e
je 0x4ba750
cmp cx, 0x5d
je 0x4ba750
inc edi
mov word [esp + eax*2 + 0x2d8], cx
movzx ecx, word [ebp + edi*2]
inc eax
test cx, cx
jne 0x4ba730
test eax, eax
jle 0x4ba790
test ebx, ebx
je 0x4ba768
mov ecx, 0x5d
mov word [esp + eax*2 + 0x2d8], cx
inc eax
xor ebx, ebx
push 1
xor ecx, ecx
push edx
lea edx, [esp + 0x2e0]
mov word [esp + eax*2 + 0x2e0], cx
push edx
mov ecx, esi
call fcn.004b6cd0
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
xor eax, eax
jmp 0x4ba791
inc edi
cmp word [ebp + edi*2], 0
jne 0x4ba720
cmp dword [esp + 0x28], 0
jl 0x4ba8f2
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
imul edi, edi, 0x12ac
mov eax, dword [edx*4 + 0x581568]
mov edx, dword [esp + 0x28]
push 1
lea ecx, [edi + eax + 0x494]
push ecx
push edx
lea eax, [esi + 0x3c0]
push eax
call fcn.00404820
xor ebp, ebp
add esp, 0x10
cmp dword [esp + 0x44], ebp
jle 0x4ba8c1
xor ebx, ebx
mov eax, dword [esp + 0x48]
add eax, ebx
test dword [eax + 0x410], 0x4000
je 0x4ba8a8
mov ecx, dword [esp + 0x1c]
push 1
push ecx
push eax
mov ecx, esi
call fcn.004b6cd0
jmp 0x4ba8b0
mov edi, dword [esp + 0x20]
movzx ecx, word [edi]
mov ebp, 0x5c
cmp bp, cx
je 0x4ba83a
mov ebp, 0x2f
cmp bp, cx
je 0x4ba83a
test cx, cx
je 0x4ba83a
mov word [esp + eax*2 + 0x2d8], cx
inc eax
jmp 0x4ba896
test ebx, ebx
je 0x4ba864
mov word [esp + eax*2 + 0x2d8], cx
mov ecx, 0x5c
inc eax
xor ebx, ebx
cmp cx, word [edi + 2]
jne 0x4ba864
mov cx, word [edi + 2]
add edi, 2
mov word [esp + eax*2 + 0x2d8], cx
inc eax
xor ecx, ecx
mov word [esp + eax*2 + 0x2d8], cx
test eax, eax
jle 0x4ba896
xor eax, eax
cmp dword [esp + 0x28], eax
lea ecx, [esp + 0x2d8]
setge al
push eax
push edx
push ecx
mov ecx, esi
call fcn.004b6cd0
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp word [edi], 0
je 0x4ba799
add edi, 2
jmp 0x4ba813
push eax
mov ecx, esi
call fcn.004b5cb0
inc ebp
add ebx, 0x444
cmp ebp, dword [esp + 0x44]
jl 0x4ba7e5
mov edx, dword [esp + 0x48]
push edx
call fcn.004d7727
add esp, 4
cmp dword [0x5b355c], 0
je 0x4ba997
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax*4 + 0x581568]
add ecx, edi
call fcn.0043a680
jmp 0x4ba997
cmp dword [esp + 0x34], 0
je 0x4ba915
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x70]
push ecx
push edx
mov edx, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.004b8930
jmp 0x4ba997
mov ebp, dword [0x53d2f8]
mov edi, dword [esp + 0x6c]
mov bl, 0x10
test byte [esp + 0x74], bl
je 0x4ba93f
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0xa8]
push edx
mov ecx, esi
call fcn.004b6cd0
jmp 0x4ba984
mov eax, dword [esi + 0x830]
mov ecx, dword [esi + 0x844]
push eax
push ecx
lea edx, [esi + 0x2c4]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.004b59b0
add esp, 0x10
test eax, eax
je 0x4ba984
mov edx, dword [esi + 0x38c]
lea ecx, [esp + 0xa0]
push ecx
push 0
push 0x180
push edx
call dword [0x53d924]
lea eax, [esp + 0x74]
push eax
push edi
call ebp
test eax, eax
jne 0x4ba921
push edi
call dword [0x53d2dc]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4ba9a6
push eax
call dword [0x53d2b0]
call fcn.004e3232
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ba9c0
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov byte [esp + 0x13ec], 4
call fcn.004e3232
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ba9f2
push 0x80004005
call fcn.00401f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x13f4], 5
call fcn.004b6a10
mov ebx, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x4bab0f
lea eax, [esi + 0x3c0]
push eax
push ebx
call fcn.00407e00
add esp, 8
test eax, eax
je 0x4bab0f
mov eax, dword [0x5b3c54]
mov ecx, dword [case.0x4d19d8.0]
mov edx, dword [esi + 0x38c]
mov ebp, dword [0x53d924]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 4]
push eax
push 0
push 0x18f
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x4bab15
mov ecx, dword [esi + 0x38c]
lea eax, [esp + 0x2c4]
push eax
push ecx
call dword [0x53d76c]
mov edx, dword [esi + 0x38c]
push 0
push 0
push 0x1a1
push edx
call ebp
mov ecx, eax
mov eax, dword [esp + 0x2d0]
sub eax, dword [esp + 0x2c8]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
mov ecx, edi
sub ecx, eax
jns 0x4baabd
xor ecx, ecx
jmp 0x4baaeb
mov edx, dword [esi + 0x38c]
push 0
push 0
push 0x1a1
push edx
call ebp
mov ecx, eax
mov eax, dword [esp + 0x2d0]
sub eax, dword [esp + 0x2c8]
cdq
sub eax, edx
sar eax, 1
cdq
idiv ecx
mov ecx, edi
sub ecx, eax
mov eax, dword [esi + 0x38c]
push 0
push ecx
push 0x197
push eax
call ebp
mov ecx, dword [esi + 0x38c]
push edi
push 1
push 0x185
push ecx
call ebp
jmp 0x4bab15
mov ebp, dword [0x53d924]
cmp dword [0x5b3514], 0
jne 0x4bab3d
mov edx, dword [esi + 0x338]
push 0
push 0
push 0x110a
push edx
call ebp
cmp eax, dword [esp + 0x1c]
je 0x4bab3d
cmp dword [esp + 0x40], 0
je 0x4bab52
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x338]
push eax
push 2
push 0x1102
push ecx
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x338]
push edx
push 9
push 0x110b
push eax
call ebp
mov eax, dword [esi + 0x868]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x22
lea edi, [esi + 0x318]
push eax
mov ecx, edi
call fcn.004dfe2a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 1
push 1
push 0
push 0x22
push eax
mov ecx, edi
mov dword [esi + 0x868], eax
call fcn.004dfe2a
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esi + 0x804], 0
mov byte [esp + 0x13ec], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4babdb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x13ec], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4babff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x13ec], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bac27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x13ec], 0xffffffff
call fcn.004132c0
mov ecx, dword [esp + 0x13e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x13cc]
xor ecx, esp
call fcn.0051767d
add esp, 0x13dc
ret 0x10