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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 7
mov dword [esp + 0x90], ecx
call fcn.00474360
mov ebx, dword [esi]
test ebx, ebx
je 0x474f49
mov eax, dword [ebx]
add eax, ebx
mov ecx, esi
mov dword [ecx], eax
mov eax, dword [ebx + 0x16]
mov edx, dword [ebx + 0xe]
add eax, ebx
push eax
mov dword [esp + 0x18], edx
call dword [0x100cf068]
mov edi, eax
lea eax, [edi + 1]
xor esi, esi
test eax, eax
mov dword [esp + 0x30], esi
jbe 0x474889
lea ecx, [eax + eax]
push ecx
call fcn.0053b370
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
lea edi, [edi + edi + 2]
push edi
push esi
call dword [0x100ef7e8]
mov edx, dword [ebx + 0x16]
push edi
add edx, ebx
push edx
push esi
call dword [0x100ef7ec]
xor eax, eax
xor ecx, ecx
cmp dword [ebx + 6], eax
mov dword [esp + 0xc], eax
setne cl
xor edx, edx
cmp dword [ebx + 0xa], eax
mov dword [esp + 0x18], eax
setne dl
cmp dword [ebp + 0xc], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
je 0x474a54
cmp dword [ebp + 0x10], eax
je 0x4748f2
mov eax, dword [esp + 0x30]
mov esi, dword [0x100cf068]
push eax
call esi
mov ecx, dword [ebp + 0x10]
push ecx
mov edi, eax
call esi
lea edi, [edi + eax + 2]
jmp 0x474902
mov edx, dword [esp + 0x30]
push edx
call dword [0x100cf068]
mov edi, eax
add edi, 1
lea esi, [esp + 0x18]
call fcn.00475b90
mov eax, dword [ebp + 0x10]
test eax, eax
mov esi, dword [esp + 0x18]
mov edi, dword [0x100cf234]
mov word [esi], 0
je 0x47492d
push eax
push esi
call edi
push 0x100cf980
push esi
call edi
mov eax, dword [esp + 0x30]
push eax
push esi
call edi
cmp dword [esp + 0x10], 0
je 0x47499e
cmp dword [0x100ef864], 0
mov edi, dword [0x100ef48c]
jne 0x474970
lea ecx, [esp + 0x94]
push ecx
push 0
push 0
push 0x100aacf0
push 0
push 0
mov dword [0x100ef864], 1
call dword [0x100cf224]
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push 0
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push 0
push 0x20019
push 0
push 0
push 0
push esi
push eax
call edx
test eax, eax
jmp 0x4749fd
mov eax, dword [0x100ef48c]
push 1
call fcn.00524e20
mov edi, eax
test edi, edi
jne 0x4749be
mov eax, dword [0x100ef48c]
push 1
push 1
call fcn.00524c50
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push esi
push edx
call dword [0x100cf014]
test edi, edi
mov dword [esp + 0x10], eax
jne 0x4749f8
mov eax, dword [0x100ef48c]
push edi
push 1
call fcn.00524c50
cmp dword [esp + 0x10], 0
je 0x474a07
mov dword [esp + 0xc], 0
cmp dword [esp + 0x20], 0
je 0x474acf
mov eax, dword [0x100ef48c]
push 1
call fcn.00524e20
mov edi, eax
test edi, edi
jne 0x474a32
mov eax, dword [0x100ef48c]
push 1
push 1
call fcn.00524c50
mov eax, dword [ebp + 0xc]
push esi
push eax
call dword [0x100cf018]
test edi, edi
jne 0x474acf
mov eax, dword [0x100ef48c]
push edi
push 1
call fcn.00524c50
jmp 0x474acf
mov edi, dword [0x100cf070]
push 0x100cf984
push esi
call edi
test eax, eax
jne 0x474a6e
mov dword [esp + 0xc], 0x80000000
push 0x100cf9a8
push esi
call edi
test eax, eax
jne 0x474a82
mov dword [esp + 0xc], 0x80000001
push 0x100cf9cc
push esi
call edi
test eax, eax
jne 0x474a96
mov dword [esp + 0xc], 0x80000002
push 0x100cf9f4
push esi
call edi
test eax, eax
jne 0x474aaa
mov dword [esp + 0xc], 0x80000005
push 0x100cfa1c
push esi
call edi
test eax, eax
jne 0x474ac0
mov dword [esp + 0xc], 0x80000003
jmp 0x474acf
cmp dword [esp + 0xc], 0
jne 0x474acf
mov dword [esp + 0xc], 0x80000001
mov ebx, dword [ebx + 0x12]
test ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x10], 0
jbe 0x474cdb
lea esp, [esp]
mov ebx, dword [ebp + 8]
mov edi, 9
mov esi, ebx
call fcn.00474360
mov esi, dword [ebx]
test esi, esi
je 0x474d03
mov ecx, dword [esi]
add ecx, esi
mov dword [ebx], ecx
mov edx, dword [esi + 0x16]
add edx, esi
push edx
call dword [0x100cf068]
mov edi, eax
lea eax, [edi + 1]
test eax, eax
mov dword [esp + 0x38], 0
jbe 0x474b3b
add eax, eax
push eax
call fcn.0053b370
add esp, 4
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x38]
lea edi, [edi + edi + 2]
push edi
push ebx
call dword [0x100ef7e8]
mov ecx, dword [esi + 0x16]
push edi
add ecx, esi
push ecx
push ebx
call dword [0x100ef7ec]
mov edi, dword [esi + 0x12]
mov eax, dword [esi + 6]
xor edx, edx
cmp dword [esi + 0xe], edx
mov dword [esp + 0x20], eax
setne dl
xor ecx, ecx
cmp dword [esi + 0xa], ecx
setne cl
xor ebx, ebx
test edi, edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0x24], ecx
jbe 0x474c55
push edi
call fcn.0053b370
add esp, 4
mov ebx, eax
push edi
push ebx
call dword [0x100ef7e8]
mov edx, dword [esi + 0x1a]
push edi
add edx, esi
push edx
push ebx
call dword [0x100ef7ec]
xor eax, eax
cmp dword [esp + 0x24], eax
mov esi, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
je 0x474be7
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x474bce
cmp eax, 6
je 0x474bce
cmp eax, 2
jne 0x474be7
lea eax, [esp + 0x28]
push eax
mov eax, ebx
call fcn.00472000
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 4
add edi, edi
cmp dword [esp + 0xc], 0
je 0x474c3e
mov eax, dword [0x100ef48c]
push 1
call fcn.00524e20
test eax, eax
mov dword [esp + 0x24], eax
jne 0x474c10
mov eax, dword [0x100ef48c]
push 1
push 1
call fcn.00524c50
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xc]
push edi
push esi
push ecx
push 0
push edx
push eax
call dword [0x100cf01c]
cmp dword [esp + 0x24], 0
jne 0x474c3e
mov eax, dword [0x100ef48c]
push 0
push 1
call fcn.00524c50
mov eax, dword [esp + 0x28]
test eax, eax
je 0x474c55
call fcn.00472510
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x8c], 0
je 0x474ca9
cmp dword [esp + 0xc], 0
je 0x474ca9
mov eax, dword [0x100ef48c]
push 1
call fcn.00524e20
mov esi, eax
test esi, esi
jne 0x474c86
mov eax, dword [0x100ef48c]
push 1
push 1
call fcn.00524c50
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
push edi
push ecx
call dword [0x100cf020]
test esi, esi
jne 0x474cad
mov eax, dword [0x100ef48c]
push esi
push 1
call fcn.00524c50
jmp 0x474cad
mov edi, dword [esp + 0x38]
test ebx, ebx
je 0x474cb8
mov eax, ebx
call fcn.00472510
test edi, edi
je 0x474cc3
mov eax, edi
call fcn.00472510
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
jb 0x474af0
cmp dword [esp + 0x14], 0
jbe 0x474d4a
mov edx, dword [esp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x90]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edx
test ebx, ebx
mov eax, dword [esp + 0xc]
jne 0x474d2a
push ebx
push eax
jmp 0x474d3b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x474d10
call fcn.00472510
mov eax, dword [esp + 0x30]
test eax, eax
je 0x474f49
call fcn.00472510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
je 0x474d35
push eax
call dword [0x100cf010]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.00474820
sub dword [esp + 0x14], 1
jne 0x474cf7
mov ebx, dword [0x100cf08c]
xor edi, edi
cmp dword [esp + 0x18], edi
je 0x474e57
mov eax, 0x100ef4b8
mov dword [esp + 0x3c], edi
mov edx, dword [esp + 0x3c]
mov ecx, 0x100ef4b4
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
call fcn.00535fe0
call ebx
mov edx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [edx]
cmp esi, eax
je 0x474dde
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
test edx, edx
jne 0x474f52
mov eax, dword [esp + 0x70]
push edi
push esi
push eax
call dword [0x100cf090]
test eax, eax
sete al
test al, al
je 0x474f52
mov ecx, dword [esp + 0x78]
mov dword [ecx], edi
mov eax, dword [esp + 0x78]
add dword [eax], 1
mov al, 1
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x88], al
mov eax, dword [0x100ef808]
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x84], 0
je 0x474e4f
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
lea eax, [esi + 0x10]
jne 0x474e4f
mov edx, ecx
mov dword [edx], edi
mov eax, dword [esi + 8]
push edi
push eax
call dword [0x100cf084]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x474e4f
push eax
call dword [0x100cf080]
mov edx, dword [esi + 0x14]
push edi
push 1
push edx
call dword [0x100cf088]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x30], edi
je 0x474f49
mov eax, 0x100ef4b8
mov dword [esp + 0x3c], edi
mov ecx, 0x100ef4b4
mov dword [esp + 0x44], edi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call fcn.00535fe0
call ebx
mov esi, eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
cmp esi, ecx
je 0x474ee0
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
test eax, eax
jne 0x474f69
mov ecx, dword [esp + 0x50]
push edi
push esi
push ecx
call dword [0x100cf090]
test eax, eax
sete al
test al, al
je 0x474f69
mov edx, dword [esp + 0x58]
mov dword [edx], edi
mov eax, dword [esp + 0x58]
add dword [eax], 1
mov al, 1
mov ecx, dword [0x100ef808]
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x30]
push eax
push 1
push ecx
call dword [0x100cf260]
cmp byte [esp + 0x64], 0
je 0x474f49
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0x10]
add dword [ecx], 0xffffffff
mov edx, dword [esi + 0x10]
cmp dword [edx], edi
lea eax, [esi + 0x10]
jne 0x474f49
mov eax, edx
mov dword [eax], edi
mov ecx, dword [esi + 8]
push edi
push ecx
call dword [0x100cf084]
mov edx, dword [esi + 0xc]
test edx, edx
lea eax, [esi + 0xc]
jle 0x474f49
push eax
call dword [0x100cf080]
mov eax, dword [esi + 0x14]
push edi
push 1
push eax
call dword [0x100cf088]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
lea eax, [esp + 0x6c]
call fcn.00535290
test al, al
jne 0x474dde
jmp 0x474de7
push esi
lea eax, [esp + 0x4c]
call fcn.00535290
test al, al
jne 0x474ee0
jmp 0x474ee9