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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [edi]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
cmp dword [ebp + 0x20], ebx
je 0x4759d4
test ecx, ecx
je 0x4759ca
push 0x53c32c
push edi
call fcn.004081e0
add esp, 8
jmp 0x475a1f
mov ebx, 1
jmp 0x475a73
test ecx, ecx
je 0x475a6c
cmp byte [esi + 0x9d], bl
je 0x4759f4
push 0x53a824
push edi
call fcn.004081e0
add esp, 8
jmp 0x475a1f
mov dword [esp + 0x1c], edx
mov ecx, esi
mov edx, eax
call fcn.0044af80
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
jns 0x475a7b
push dword [esp + 0x34]
push 0x53a838
push edi
call fcn.004081e0
add esp, 0xc
xor ebx, ebx
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, esi
call fcn.00451220
mov edx, dword [esp + 0x3c]
mov ecx, esi
call fcn.00450cf0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x475a48
mov edx, eax
mov ecx, esi
call fcn.0043cb90
cmp dword [edi + 0x1b4], 0
jne 0x475a5a
mov edx, ebx
mov ecx, esi
call fcn.00476410
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
movzx ebx, byte [esi + 0x9c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x475fca
cmp byte [esi + 0x49], 0
jne 0x475fca
cmp byte [esi + 0x9d], 0
je 0x475aee
cmp ebx, 1
je 0x475aee
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x475ae3
cmp dword [esi + 0x1d0], 0
je 0x475aba
mov edx, ecx
mov ecx, esi
call fcn.004050c0
jmp 0x475ae3
cmp ecx, dword [esi + 0x128]
jb 0x475ada
cmp ecx, dword [esi + 0x12c]
jae 0x475ada
mov eax, dword [esi + 0x124]
mov dword [ecx], eax
mov dword [esi + 0x124], ecx
jmp 0x475ae3
push ecx
call fcn.00405050
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0xc], 0
mov edx, ecx
mov ecx, edi
call fcn.00453310
cmp byte [esi + 0x9d], 0
mov edx, 1
mov dword [esp + 0x38], edx
jne 0x475b27
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 4], 0
jne 0x475b27
test eax, eax
je 0x475b27
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x48]
cmp eax, dword [ecx + 0x1c]
cmove ebx, edx
mov dword [esp + 0x28], ebx
cmp byte [esi + 0x49], 0
jne 0x475a1d
mov eax, dword [edi]
mov ecx, ebx
shl ecx, 4
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], edi
mov eax, dword [eax + 0x10]
add ecx, eax
mov dword [esp + 0x54], 0x53c35c
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
xor eax, eax
cmp ebx, 1
mov ebx, dword [esp + 0xc]
mov edx, ebx
sete al
mov dword [esp + 0x4c], eax
call fcn.00449590
test eax, eax
jne 0x475a1d
mov edx, ebx
mov ecx, edi
call fcn.00453310
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x475bb5
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x9c], 1
jne 0x475a23
mov byte [esi + 0x9e], 1
jmp 0x475a23
cmp dword [eax + 0x38], 0
je 0x475bce
push 0x53c364
push edi
call fcn.004081e0
add esp, 8
jmp 0x475a1d
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x475a1d
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x475bf3
xor ebx, ebx
mov dword [esp + 0x30], ebx
jmp 0x475c29
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.00405440
mov ebx, eax
add esp, 8
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x475c29
push dword [esp + 0x14]
push dword [esp + 0x1c]
push ebx
call fcn.004e8950
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
mov ecx, ebx
call fcn.004082d0
test ebx, ebx
je 0x475a1d
mov edx, ebx
mov ecx, edi
call fcn.0044b050
test eax, eax
jne 0x475f70
mov eax, dword [esi + 0x10]
mov edx, ebx
mov ecx, dword [esp + 0x34]
push 0
mov ecx, dword [ecx + eax + 0xc]
add ecx, 0x28
call fcn.00409680
add esp, 4
cmp dword [eax + 8], 0
je 0x475cc3
cmp dword [ebp + 0x24], 0
jne 0x475c87
mov eax, dword [esp + 0x1c]
push eax
push 0x53c390
push edi
call fcn.004081e0
add esp, 0xc
jmp 0x475f70
mov eax, dword [edi + 0x78]
mov edx, edi
test eax, eax
cmovne edx, eax
mov eax, dword [esp + 0x28]
mov ecx, eax
shl dword [esp + 0x38], cl
mov ebx, dword [edx + 0x5c]
test dword [esp + 0x38], ebx
jne 0x475f70
bts ebx, eax
mov dword [edx + 0x5c], ebx
cmp eax, 1
jne 0x475f70
mov ecx, edx
call fcn.004519b0
jmp 0x475f70
mov eax, dword [esp + 0x2c]
mov edx, 7
mov eax, dword [eax]
test eax, eax
je 0x475d3d
mov edi, eax
mov ebx, 0x53a05c
nop dword [eax]
mov al, byte [edi]
dec edx
test al, al
je 0x475d02
movzx ecx, byte [ebx]
movzx eax, al
mov al, byte [eax + 0x53ea00]
cmp al, byte [ecx + 0x53ea00]
jne 0x475d02
inc edi
inc ebx
test edx, edx
jg 0x475ce0
dec edx
test edx, edx
js 0x475d1e
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x53ea00]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x53ea00]
sub eax, ecx
jne 0x475d35
mov edi, dword [esp + 0x20]
push 0x53c3ac
push edi
call fcn.004081e0
add esp, 8
jmp 0x475f70
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xc], 0
je 0x475d7a
mov ecx, dword [esp + 0x24]
cmp ecx, 0x40
je 0x475d9a
push 0
push dword [esp + 0x10]
cmp ecx, 0x21
mov edx, 0x53c3dc
mov eax, 0x53c3d4
cmovne eax, edx
push eax
push 0x53c3e4
push edi
call fcn.004081e0
add esp, 0x14
jmp 0x475f70
cmp dword [esp + 0x24], 0x40
jne 0x475d9a
push 0
push dword [esp + 0x10]
push 0x53c40c
push edi
call fcn.004081e0
add esp, 0x10
jmp 0x475f70
mov edx, dword [eax + 0x48]
mov edi, 0xfff0bdc0
test edx, edx
je 0x475dc1
mov ecx, dword [esi + 0x14]
xor edi, edi
test ecx, ecx
jle 0x475dc1
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x475dc1
inc edi
add eax, 0x10
cmp edi, ecx
jl 0x475db5
mov ecx, dword [esi + 0x10]
mov eax, edi
add eax, eax
mov edx, 7
cmp dword [ebp + 0x20], 0
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x18], eax
je 0x475ddd
mov eax, dword [ecx + 0x10]
cmp edi, 1
je 0x475de8
cmp dword [ebp + 0x20], 0
je 0x475ded
mov edx, 5
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
push ebx
call fcn.00449a30
add esp, 0xc
test eax, eax
jne 0x475f6c
push dword [esp + 0x18]
cmp edi, 1
mov ecx, 0x53a7e0
mov edi, dword [esp + 0x24]
mov edx, 0x12
push eax
mov eax, 0x5398b4
cmove eax, ecx
mov ecx, edi
push eax
call fcn.00449a30
add esp, 0xc
test eax, eax
jne 0x475f70
cmp dword [esp + 0x24], 0x40
mov eax, 0x21
push 0
cmovne eax, dword [esp + 0x28]
mov ecx, esi
push 0x24
mov dword [esp + 0x2c], eax
call fcn.00405440
mov ecx, eax
add esp, 8
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x475f66
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx], ebx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x475eb6
xor ebx, ebx
jmp 0x475ef8
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475ec0
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x20], eax
call fcn.00405440
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x475ef4
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebx
call fcn.004e8950
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x24], 0x21
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0x10]
mov eax, dword [edx + eax + 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x48]
mov dword [ecx + 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [ecx + 8], al
setne al
inc al
mov byte [ecx + 9], al
mov eax, dword [esp + 0x40]
test eax, eax
je 0x475f44
push 0
push 1
mov edx, eax
mov ecx, esi
call fcn.0043cd70
mov ecx, dword [esp + 0x18]
add esp, 8
jmp 0x475f46
xor eax, eax
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call fcn.0043d480
mov ebx, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov dword [edi + 0x1b4], ebx
jmp 0x475a1f
mov dword [esp + 0x10], ecx
jmp 0x475f70
mov edi, dword [esp + 0x20]
cmp dword [esi + 0x1d0], 0
je 0x475f8d
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.004050c0
mov ebx, dword [esp + 0x10]
jmp 0x475a1f
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esi + 0x128]
jb 0x475fb8
cmp ecx, dword [esi + 0x12c]
jae 0x475fb8
mov eax, dword [esi + 0x124]
mov ebx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0x124], ecx
jmp 0x475a1f
push ecx
call fcn.00405050
mov ebx, dword [esp + 0x14]
add esp, 4
jmp 0x475a1f
xor ebx, ebx
jmp 0x475a23