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

Disassembly:
mov eax, 0x1088
call fcn.00492040
mov eax, dword [esp + 0x1098]
mov edx, dword [esp + 0x109c]
mov ecx, dword [esp + 0x1094]
push ebx
mov ebx, dword [esp + 0x1090]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x10a0]
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
cmp eax, esi
jne 0x4798a0
cmp ecx, esi
je 0x479893
mov dword [ecx], 0x63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1088
ret
mov dword [eax], esi
cmp ecx, esi
je 0x4798a8
mov dword [ecx], esi
cmp edx, esi
jne 0x4798b6
mov eax, 0x10
jmp 0x479edd
mov dword [edx], esi
mov dword [esp + 0x30], 0x4b2570
mov dword [esp + 0x34], 0x4b2670
mov dword [esp + 0x38], 0x4b2770
mov dword [esp + 0x3c], 0x4b28b0
test edi, 0xdc038580
je 0x4798ea
mov eax, 0x11
jmp 0x479ece
cmp byte [ebx], 0x28
jne 0x479a3f
jmp 0x479902
xor esi, esi
cmp byte [ebx + ebp + 1], 0x2a
jne 0x479a3f
push 5
lea esi, [ebx + ebp + 2]
push 0x4b5634
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x479933
add ebp, 7
or edi, 0x800
jmp 0x479a33
push 4
push str.Wrap
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x479955
add ebp, 6
or edi, 0x20000000
jmp 0x479a33
push 3
push 0x4b5644
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x47997c
add ebp, 5
mov eax, 0x100000
and edi, 0xff8fffff
jmp 0x479a31
push 3
push str.Background
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x4799a3
add ebp, 5
mov eax, 0x200000
and edi, 0xff8fffff
jmp 0x479a31
push 5
push 0x4b564c
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x4799c7
add ebp, 7
mov eax, 0x300000
and edi, 0xff8fffff
jmp 0x479a31
push 4
push 0x4b5654
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x4799eb
add ebp, 6
mov eax, 0x400000
and edi, 0xff8fffff
jmp 0x479a31
push 8
push 0x4b565c
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x479a0f
add ebp, 0xa
mov eax, 0x500000
and edi, 0xff8fffff
jmp 0x479a31
push 0xc
push 0x4b5668
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x479a87
add ebp, 0xe
mov eax, 0x800000
and edi, 0xfe7fffff
or edi, eax
cmp byte [ebx + ebp], 0x28
je 0x479900
xor esi, esi
mov eax, edi
shr eax, 0xb
mov edx, 1
and eax, edx
mov dword [esp + 0x28], eax
je 0x479a66
test edi, 0x2000
jne 0x479a66
mov eax, dword [esp + 0x10ac]
mov dword [eax], 0xffffffff
mov eax, edi
and eax, 0x1800000
je 0x479aa5
cmp eax, 0x800000
je 0x479aa5
cmp eax, 0x1000000
je 0x479aa5
mov eax, 0x38
jmp 0x479ece
push 0xc
push 0x4b5678
push esi
call fcn.004897cd
add esp, 0xc
test eax, eax
jne 0x479a3d
add ebp, 0xe
mov eax, 0x1000000
jmp 0x479a2b
mov eax, edi
and eax, 0x700000
mov ecx, 2
cmp eax, 0x300000
jg 0x479b09
je 0x479b02
cmp eax, esi
je 0x479b02
cmp eax, 0x100000
je 0x479afb
cmp eax, 0x200000
jne 0x479b17
mov eax, 0xa
mov dword [esp + 0x88], esi
cmp eax, 0xff
jle 0x479b33
mov dword [esp + 0x8c], ecx
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x90], cl
mov byte [esp + 0x91], al
jmp 0x479b41
mov eax, 0xd
jmp 0x479ad1
mov eax, 0xd0a
jmp 0x479ad1
cmp eax, 0x400000
je 0x479b2a
cmp eax, 0x500000
je 0x479b21
mov eax, 0x38
jmp 0x479ece
mov dword [esp + 0x88], ecx
jmp 0x479b41
mov dword [esp + 0x88], edx
jmp 0x479b41
mov dword [esp + 0x8c], edx
mov byte [esp + 0x90], al
lea edx, [esp + 0x98]
mov eax, edx
mov dword [esp + 0x44], eax
mov ecx, edx
mov eax, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x479b80
sub eax, edx
add eax, ebx
lea edx, [esp + 0x98]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
push eax
push eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, edi
and eax, 7
push eax
lea esi, [ebx + ebp]
push edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0x50], esi
mov byte [esp + 0xcc], 0x5e
call fcn.00478e80
mov eax, dword [esp + 0x48]
add esp, 0x34
test eax, eax
jne 0x479ece
mov edi, dword [esp + 0x18]
cmp edi, 0x10000
jle 0x479c1c
mov eax, 0x14
jmp 0x479ece
mov ecx, dword [esp + 0x60]
add ecx, 3
imul ecx, dword [esp + 0x5c]
lea ebx, [ecx + edi + 0x28]
push ebx
call dword [0x4ba358]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x479c44
lea eax, [ebp + 0x15]
jmp 0x479ec7
mov dword [ebp + 4], ebx
mov dword [ebp], 0x50435245
mov edx, dword [esp + 0x74]
mov dword [ebp + 8], edx
movzx eax, word [esp + 0x78]
mov word [ebp + 0xc], ax
xor edx, edx
mov dword [ebp + 0x14], edx
xor ecx, ecx
mov word [ebp + 0xe], cx
mov ecx, 0x28
mov word [ebp + 0x18], cx
movzx edx, word [esp + 0x60]
mov word [ebp + 0x1a], dx
movzx eax, word [esp + 0x5c]
xor ecx, ecx
mov word [ebp + 0x1c], ax
mov word [ebp + 0x1e], cx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x24], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], ecx
movzx eax, word [ebp + 0x18]
push ecx
add eax, ebp
mov dword [esp + 0x5c], eax
movzx edx, word [ebp + 0x1a]
movzx ebx, word [ebp + 0x1c]
imul ebx, edx
lea edx, [esp + 0x34]
push edx
push ecx
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x3c]
push edx
push ecx
push ecx
push ecx
add ebx, eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x70], ecx
lea eax, [esp + 0xb8]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x34]
push ecx
mov byte [ebx], 0x5e
mov eax, dword [ebp + 8]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
mov edx, eax
push ecx
and edx, 7
push edx
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
call fcn.00478e80
movzx eax, word [esp + 0x98]
mov word [ebp + 0x10], ax
mov cx, word [esp + 0xa0]
mov word [ebp + 0x12], cx
movzx edx, word [esp + 0xac]
add esp, 0x34
mov word [ebp + 0xc], dx
cmp dword [esp + 0x80], 0
je 0x479d55
mov dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0x14], 0
jne 0x479d6d
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x479d6d
mov dword [esp + 0x14], 0x16
mov eax, dword [esp + 0x20]
mov byte [eax], 0
inc eax
sub eax, ebx
cmp eax, edi
jle 0x479d88
mov dword [esp + 0x14], 0x17
jmp 0x479e0f
cmp dword [esp + 0x14], 0
jne 0x479e0f
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x98]
cmp ecx, edx
jbe 0x479dfd
mov edi, dword [esp + 0x28]
sub ecx, 2
mov dword [esp + 0x54], ecx
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx esi, byte [eax + ebx]
movzx edx, byte [eax + ebx + 1]
mov dword [esp + 0x18], eax
shl esi, 8
or esi, edx
mov eax, ebx
call fcn.00473730
test eax, eax
je 0x479df3
mov esi, dword [esp + 0x18]
mov ecx, eax
sub ecx, ebx
sar ecx, 8
sub al, bl
mov byte [esi + ebx], cl
mov byte [esi + ebx + 1], al
cmp dword [esp + 0x14], 0
je 0x479d93
jmp 0x479e0f
mov dword [esp + 0x14], 0x35
jmp 0x479e0f
mov dx, word [ebp + 0x12]
cmp dx, word [ebp + 0x10]
jbe 0x479e0f
mov dword [esp + 0x14], 0xf
cmp dword [esp + 0x84], 0
je 0x479eb2
mov edi, dword [esp + 0x28]
or esi, 0xffffffff
mov eax, ebx
call fcn.00473730
mov esi, eax
test esi, esi
je 0x479eb2
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
jne 0x479e8a
movzx edx, byte [esi - 2]
movzx eax, byte [esi - 1]
shl edx, 8
or edx, eax
movzx ecx, byte [edx + esi - 3]
lea edi, [edx + esi - 3]
lea edx, [esp + 0x30]
push edx
mov byte [edi], 0
mov eax, dword [ebp + 8]
push 1
push eax
push esi
mov dword [esp + 0x28], ecx
call fcn.00473420
mov cl, byte [esp + 0x28]
add esp, 0x10
mov byte [edi], cl
test eax, eax
js 0x479ea1
mov edx, eax
sar edx, 8
mov byte [esi + 1], dl
mov byte [esi + 2], al
mov edi, dword [esp + 0x28]
lea eax, [esi + 3]
or esi, 0xffffffff
call fcn.00473730
mov esi, eax
test esi, esi
jne 0x479e35
jmp 0x479eb2
sub eax, 0xfffffffe
neg eax
sbb eax, eax
and eax, 0xfffffff5
add eax, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x479f22
push ebp
call dword [0x4ba35c]
mov eax, dword [esp + 0x18]
add esp, 4
mov ebx, dword [esp + 0x109c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10ac]
sub ecx, ebx
mov dword [edx], ecx
mov esi, eax
mov ecx, 0x4b2be8
test eax, eax
jle 0x479eff
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x479ee8
cmp byte [ecx], dl
je 0x479efa
dec esi
test esi, esi
jg 0x479ee8
jmp 0x479eff
mov ecx, 0x4b55fc
mov edx, dword [esp + 0x10a8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10a4]
test ecx, ecx
je 0x479f15
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1088
ret
mov eax, dword [ebp + 8]
test al, 0x10
jne 0x479fad
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
push eax
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
call fcn.00479260
add esp, 0x10
test eax, eax
je 0x479f50
or dword [ebp + 8], 0x10
jmp 0x479fad
mov eax, dword [esp + 0x2c]
test eax, eax
jns 0x479f6c
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00479670
add esp, 0xc
test eax, eax
js 0x479f94
mov ecx, eax
and ecx, 0xff
test eax, 0x100
je 0x479f89
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ecx]
cmp edx, ecx
jne 0x479f89
mov eax, ecx
or word [ebp + 0xc], 2
mov word [ebp + 0x14], ax
jmp 0x479fad
mov eax, dword [esp + 0x70]
push eax
push 0
push ebx
call fcn.00479400
add esp, 0xc
test eax, eax
je 0x479fad
or word [ebp + 0xc], 8
mov eax, dword [esp + 0x24]
test eax, eax
js 0x479feb
test byte [ebp + 8], 0x10
je 0x479fc2
test eax, 0x200
je 0x479feb
mov ecx, eax
and ecx, 0xff
test eax, 0x100
je 0x479fe2
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ecx]
cmp edx, ecx
jne 0x479fe2
and eax, 0xfffffeff
or word [ebp + 0xc], 4
mov word [ebp + 0x16], ax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1088
ret