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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x40
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x28], ecx
call fcn.004030e0
push dword [esp + 0x58]
push dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
add ecx, 0x2c
call fcn.0040b020
mov edx, dword [esp + 0x28]
mov dword [edx], 0x4be7a4
mov eax, dword [esp + 0x28]
mov dword [eax + 0x2c], 0x4be7fc
cmp edi, 2
jne 0x404a50
mov dword [esp + 0x24], 4
jmp 0x404a54
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x1c], eax
mov ebp, dword [esp + 0x24]
mov eax, ebp
dec eax
cmp eax, 7
ja case.0x404a6f.3
jmp dword [eax*4 + 0x4be62c]
mov eax, dword [esp + 0x28]
mov dword [eax + 0x68], 0x30
push 0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x68]
push eax
call fcn.0040ccc0
pop ecx
pop ecx
mov edi, dword [esp + 0x28]
mov dword [edi + 0x64], eax
push 0x2c
push 0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x64]
push eax
call fcn.0040cf20
add esp, 0xc
push 0xff
push 0xff
push 0xff
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, 0x28
push eax
call fcn.004044f0
add esp, 0x10
push 0
push 0
push 0
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0x2c
push eax
call fcn.004044f0
add esp, 0x10
jmp 0x404ef8
mov eax, dword [esp + 0x28]
mov dword [eax + 0x68], 0x38
push 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x68]
push eax
call fcn.0040ccc0
pop ecx
pop ecx
mov esi, dword [esp + 0x28]
mov dword [esi + 0x64], eax
push 0x2c
push 0
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x64]
push eax
call fcn.0040cf20
add esp, 0xc
push 0xff
push 0xff
push 0xff
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x64]
add eax, 0x28
push eax
call fcn.004044f0
add esp, 0x10
push 0xc0
push 0xc0
push 0xc0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, 0x2c
push eax
call fcn.004044f0
add esp, 0x10
push pe_nt_image_headers32
push pe_nt_image_headers32
push pe_nt_image_headers32
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0x30
push eax
call fcn.004044f0
add esp, 0x10
push 0
push 0
push 0
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x64]
add eax, 0x34
push eax
call fcn.004044f0
add esp, 0x10
jmp 0x404ef8
mov eax, dword [esp + 0x28]
mov dword [eax + 0x68], 0x68
push 0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x68]
push eax
call fcn.0040ccc0
pop ecx
pop ecx
mov edi, dword [esp + 0x28]
mov dword [edi + 0x64], eax
push 0x2c
push 0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x64]
push eax
call fcn.0040cf20
add esp, 0xc
push 0xff
push 0xff
push 0xff
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, 0x28
push eax
call fcn.004044f0
add esp, 0x10
push 5
push 0xf3
push 0xfc
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0x2c
push eax
call fcn.004044f0
add esp, 0x10
push 2
push 0x64
push 0xff
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x64]
add eax, 0x30
push eax
call fcn.004044f0
add esp, 0x10
push 6
push 8
push 0xdd
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x64]
add eax, 0x34
push eax
call fcn.004044f0
add esp, 0x10
push 0x84
push 8
push 0xf2
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x64]
add eax, 0x38
push eax
call fcn.004044f0
add esp, 0x10
push 0xa5
push 0
push 0x46
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x64]
add eax, 0x3c
push eax
call fcn.004044f0
add esp, 0x10
push 0xd4
push 0
push 0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, 0x40
push eax
call fcn.004044f0
add esp, 0x10
push 0xea
push 0xab
push 2
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0x44
push eax
call fcn.004044f0
add esp, 0x10
push 0x14
push 0xb7
push 0x1f
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x64]
add eax, 0x48
push eax
call fcn.004044f0
add esp, 0x10
push 0x11
push 0x64
push 0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x64]
add eax, 0x4c
push eax
call fcn.004044f0
add esp, 0x10
push 5
push 0x2c
push 0x56
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x64]
add eax, 0x50
push eax
call fcn.004044f0
add esp, 0x10
push 0x3a
push 0x71
push 0x90
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x64]
add eax, 0x54
push eax
call fcn.004044f0
add esp, 0x10
push 0xc0
push 0xc0
push 0xc0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, 0x58
push eax
call fcn.004044f0
add esp, 0x10
push pe_nt_image_headers32
push pe_nt_image_headers32
push pe_nt_image_headers32
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x64]
add eax, 0x5c
push eax
call fcn.004044f0
add esp, 0x10
push 0x40
push 0x40
push 0x40
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x64]
add eax, 0x60
push eax
call fcn.004044f0
add esp, 0x10
push 0
push 0
push 0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x64]
add eax, 0x64
push eax
call fcn.004044f0
add esp, 0x10
jmp 0x404ef8
mov eax, dword [esp + 0x28]
mov dword [eax + 0x68], 0x428
push 0
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 0x68]
push eax
call fcn.0040ccc0
pop ecx
pop ecx
mov edx, dword [esp + 0x28]
mov dword [edx + 0x64], eax
push 0x2c
push 0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x64]
push eax
call fcn.0040cf20
add esp, 0xc
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov ebp, dword [esp + 0xc]
xor esi, esi
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov edi, dword [esp + 0x14]
push esi
push dword [esp + 8]
push edi
lea edx, [ebp*4]
mov eax, dword [esp + 0x34]
add edx, dword [eax + 0x64]
add edx, 0x28
push edx
call fcn.004044f0
add esp, 0x10
inc ebp
add esi, 0x33
inc ebx
cmp ebx, 6
jl 0x404e36
add dword [esp + 0xc], 6
add dword [esp + 8], 0x33
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 6
jl 0x404e22
add dword [esp + 0x18], 0x24
add dword [esp + 0x1c], 0x33
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 6
jl 0x404e02
mov edi, 0xd8
mov esi, 0x360
push 0
push 0
push 0
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x64]
add eax, esi
add eax, 0x28
push eax
call fcn.004044f0
add esp, 0x10
add esi, 4
inc edi
cmp edi, 0x100
jl 0x404e98
jmp 0x404ef8
mov eax, dword [esp + 0x28]
mov dword [eax + 0x68], 0x28
push 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x68]
push eax
call fcn.0040ccc0
pop ecx
pop ecx
mov esi, dword [esp + 0x28]
mov dword [esi + 0x64], eax
push 0x2c
push 0
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x64]
push eax
call fcn.0040cf20
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x8c], 0
mov eax, dword [esp + 0x28]
mov dword [eax + 0x5c], 0
mov edx, dword [esp + 0x28]
mov dword [edx + 0x60], 0
mov eax, dword [esp + 0x28]
mov dword [eax + 0x94], 0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x88], 0
movsx eax, word [esp + 0x56]
movsx ebp, word [esp + 0x5a]
sub ebp, eax
mov esi, dword [esp + 0x28]
mov dword [esi + 0x80], ebp
movsx eax, word [esp + 0x54]
movsx edi, word [esp + 0x58]
sub edi, eax
mov eax, dword [esp + 0x28]
mov dword [eax + 0x84], edi
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x64]
mov dword [eax], 0x28
mov edx, dword [esp + 0x28]
mov eax, edx
mov ecx, dword [eax + 0x64]
mov esi, dword [edx + 0x80]
mov dword [ecx + 4], esi
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0x84]
neg ebx
mov edx, dword [eax + 0x64]
mov dword [edx + 8], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x64]
mov word [ecx + 0xc], 1
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x64]
mov ax, word [esp + 0x24]
mov word [esi + 0xe], ax
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx + 0x64]
mov dword [eax + 0x10], 0
cmp dword [esp + 0x24], 1
jne 0x404ff0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x3c]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
lea eax, [eax*4]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x7c], eax
jmp 0x4050e9
cmp dword [esp + 0x24], 2
jne 0x405020
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x3c]
add eax, 0xf
cdq
and edx, 0xf
add eax, edx
sar eax, 4
lea eax, [eax*4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x7c], eax
jmp 0x4050e9
cmp dword [esp + 0x24], 4
jne 0x405050
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x3c]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*4]
mov esi, dword [esp + 0x28]
mov dword [esi + 0x7c], eax
jmp 0x4050e9
cmp dword [esp + 0x24], 8
jne 0x405080
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x3c]
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax*4]
mov ebx, dword [esp + 0x28]
mov dword [ebx + 0x7c], eax
jmp 0x4050e9
cmp dword [esp + 0x24], 0x10
jne 0x4050a6
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x3c]
inc edx
cmp edx, 0x80000000
sbb edx, 0xffffffff
sar edx, 1
lea edx, [edx*4]
mov dword [eax + 0x7c], edx
jmp 0x4050e9
cmp dword [esp + 0x24], 0x18
jne 0x4050d1
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x3c]
lea eax, [eax + eax*2 + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax*4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x7c], eax
jmp 0x4050e9
cmp dword [esp + 0x24], 0x20
jne 0x4050e9
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0x3c]
lea esi, [esi*4]
mov dword [eax + 0x7c], esi
push 0
push 0
mov eax, dword [esp + 0x30]
add eax, 0x78
push eax
push 0
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 0x64]
push eax
push 0
call dword [0x4ea5f8]
mov edx, dword [esp + 0x28]
mov dword [edx + 0x58], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
call dword [esi + 0xb8]
mov ebx, eax
push edi
push ebp
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [0x4ea8b0]
push 0
call dword [0x4ea604]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [0x4ea8b4]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
call dword [esi + 0xbc]
mov eax, dword [esp + 0x28]
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret 0x10