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

Disassembly:
push 0xffffffffffffffff
push 0x52a70c
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x59c6b8]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x59c6b8]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a8]
mov ebx, dword [esp + 0x1ac]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov dword [esp + 0x48], eax
mov eax, 0xd
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
xor edi, edi
push ecx
mov ecx, ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x74], edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x40]
mov ecx, ebx
call edx
mov esi, eax
push edi
lea eax, [esp + 0x18]
push eax
push 0x5350b0
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x420dd9
lea ecx, [esp + 0x14]
call fcn.0044ea50
push edi
lea ecx, [esp + 0x18]
push ecx
push str.WUIBDS
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.0044ea50
cmp ebp, edi
jle 0x420f13
push 0
lea edx, [esp + 0x18]
push edx
push str.Height
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x420e33
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea eax, [esp + 0x18]
push eax
push 0x532ea4
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.0044ea50
test edi, edi
jle 0x420f13
push 0
lea ecx, [esp + 0x18]
push ecx
push str.ImageMask
mov ecx, esi
call fcn.00412200
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x420e93
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea edx, [esp + 0x18]
push edx
push 0x535098
mov ecx, esi
call fcn.00412200
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
jne 0x420e9f
mov edi, dword [esp + 0x1c]
jmp 0x420ea4
cmp eax, 5
jne 0x420f0a
lea ecx, [esp + 0x14]
call fcn.0044ea50
cmp dword [esp + 0x2c], 0
jne 0x420f54
push 0
lea eax, [esp + 0x18]
push eax
push str.BitsPerComponent
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x420eee
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x535080
mov ecx, esi
call fcn.00412200
mov ebp, 1
cmp dword [esp + 0x14], ebp
jne 0x420f41
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
cmp eax, ebp
jl 0x420f0a
cmp eax, 0x10
jle 0x420f49
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x94]
test eax, eax
je 0x421894
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xd
je 0x421894
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
jmp 0x421899
test edi, edi
je 0x420f0a
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x14]
call fcn.0044ea50
jmp 0x420f59
mov ebp, 1
push 0
lea edx, [esp + 0x18]
push edx
push str.Interpolate
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x420f8f
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea eax, [esp + 0x18]
push eax
push 0x531750
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 0
jne 0x420fa1
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x34], ebp
jne 0x420fa9
mov dword [esp + 0x34], 0
lea ecx, [esp + 0x14]
call fcn.0044ea50
test edi, edi
je 0x42111e
cmp dword [esp + 0x2c], ebp
jne 0x420f13
xor edi, edi
push edi
lea ecx, [esp + 0x18]
push ecx
push str.Decode
mov ecx, esi
call fcn.00412200
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x421000
lea ecx, [esp + 0x14]
call fcn.0044ea50
push edi
lea edx, [esp + 0x18]
push edx
push 0x531758
mov ecx, esi
call fcn.00412200
mov eax, dword [esp + 0x14]
cmp eax, 6
jne 0x42104f
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
push 0
call fcn.00408350
lea ecx, [esp + 0x38]
call fcn.004010a0
test eax, eax
je 0x421042
mov edi, 1
cmp dword [esp + 0x38], edi
jne 0x421033
fild dword [esp + 0x40]
jmp 0x421037
fld qword [esp + 0x40]
fld1
fucompp
fnstsw ax
test ah, 0x44
jnp 0x421044
xor edi, edi
lea ecx, [esp + 0x38]
call fcn.0044ea50
jmp 0x421058
cmp eax, 5
jne 0x420f0a
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov ebp, dword [esp + 0x30]
cmp dword [ebp + 0x8c], 0
jne 0x4210ae
mov edx, dword [ebx]
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, edi
test eax, eax
jle 0x4210a0
mov esi, eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
dec esi
jne 0x421094
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
jmp 0x4219a7
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 0x74]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
cmp eax, 0xa
jne 0x4210ea
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push edi
mov edi, dword [esp + 0x30]
push edi
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.0041ff00
jmp 0x4219a7
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x120]
push eax
mov eax, dword [esp + 0x1b4]
push eax
mov eax, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x5c]
push ebx
push eax
mov eax, dword [ebp + 0x1c]
push eax
call edx
jmp 0x4219a7
push 0
lea eax, [esp + 0x18]
push eax
push str.ColorSpace
mov ecx, esi
call fcn.00412200
mov edi, 5
cmp dword [esp + 0x14], edi
jne 0x421158
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x534e84
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 4
jne 0x4211af
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00415fa0
cmp dword [esp + 0x38], edi
je 0x4211a6
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x4211af
lea ecx, [esp + 0x38]
call fcn.0044ea50
cmp dword [esp + 0x14], edi
je 0x4211c8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042f5a0
add esp, 8
mov edi, eax
jmp 0x421205
mov eax, dword [esp + 0x6c]
cmp eax, ebp
jne 0x4211de
push 0
call fcn.0042e5a0
add esp, 4
mov edi, eax
jmp 0x421205
cmp eax, 2
jne 0x4211f0
push eax
call fcn.0042e5a0
add esp, 4
mov edi, eax
jmp 0x421205
cmp eax, 3
jne 0x421203
push 4
call fcn.0042e5a0
add esp, 4
mov edi, eax
jmp 0x421205
xor edi, edi
lea ecx, [esp + 0x14]
call fcn.0044ea50
test edi, edi
je 0x420f13
push 0
lea ecx, [esp + 0x18]
push ecx
push str.Decode
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x42124c
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea edx, [esp + 0x18]
push edx
push 0x531758
mov ecx, esi
call fcn.00412200
push 0x320
call fcn.00511699
add esp, 4
mov dword [esp + 0x64], eax
mov dword [esp + 0x1a0], 0
test eax, eax
je 0x421286
mov edx, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, eax
call fcn.0042c0a0
mov edi, eax
mov dword [esp + 0x4c], eax
jmp 0x42128c
xor edi, edi
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.0044ea50
cmp dword [edi + 0x318], 0
jne 0x4212be
mov ecx, edi
call fcn.0042c570
push edi
call fcn.0051163f
add esp, 4
jmp 0x420f13
xor ebp, ebp
push ebp
lea eax, [esp + 0x78]
push eax
push str.Mask
mov ecx, esi
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call fcn.00412200
push ebp
lea ecx, [esp + 0x88]
push ecx
push str.SMask
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x84], 8
mov ecx, dword [esp + 0x1b0]
jne 0x4215ee
cmp ecx, ebp
jne 0x420f13
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
mov dword [esp + 0x50], ecx
call eax
push ebp
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
push 0x5350b0
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x421368
lea ecx, [esp + 0x14]
call fcn.0044ea50
push ebp
lea edx, [esp + 0x18]
push edx
push str.WUIBDS
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], eax
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push str.Height
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x4213ba
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea edx, [esp + 0x18]
push edx
push 0x532ea4
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], eax
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push str.BitsPerComponent
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x42140c
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea edx, [esp + 0x18]
push edx
push 0x535080
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea eax, [esp + 0x18]
push eax
push str.ColorSpace
mov ecx, esi
call fcn.00412200
mov edi, 5
cmp dword [esp + 0x14], edi
jne 0x42145e
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x534e84
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 4
jne 0x4214b5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00415fa0
cmp dword [esp + 0x38], edi
je 0x4214ac
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
jmp 0x4214b5
lea ecx, [esp + 0x38]
call fcn.0044ea50
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042f5a0
add esp, 8
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0044ea50
test edi, edi
je 0x420f13
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test eax, eax
jne 0x420f13
push eax
lea ecx, [esp + 0x18]
push ecx
push str.Decode
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x42151d
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea edx, [esp + 0x18]
push edx
push 0x531758
mov ecx, esi
call fcn.00412200
push 0x320
call fcn.00511699
add esp, 4
mov dword [esp + 0x60], eax
mov dword [esp + 0x1a0], 1
test eax, eax
je 0x42154f
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
mov ecx, eax
call fcn.0042c0a0
mov esi, eax
jmp 0x421551
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1a0], 0xffffffff
mov dword [esp + 0x60], esi
call fcn.0044ea50
cmp dword [esi + 0x318], 0
jne 0x421587
mov ecx, esi
call fcn.0042c570
push esi
call fcn.0051163f
add esp, 4
jmp 0x420f13
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x68], 1
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x8c], 0
jne 0x4218af
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 8]
imul eax, dword [edi + 4]
imul eax, dword [esp + 0x28]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [esp + 0x24]
test eax, eax
jle 0x4215e0
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
dec esi
jne 0x4215d4
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
jmp 0x42197a
mov eax, dword [esp + 0x74]
cmp eax, 6
jne 0x4216b4
mov ecx, dword [esp + 0x7c]
mov ebp, 1
cmp dword [ecx + 0xc], ebp
jle 0x421593
mov edi, ebp
lea esi, [esp + 0x94]
cmp edi, 0x40
jge 0x421593
lea edx, [esp + 0x14]
push edx
lea eax, [edi - 1]
push eax
call fcn.00408350
cmp dword [esp + 0x14], ebp
jne 0x4216a4
mov ecx, dword [esp + 0x1c]
mov dword [esi], ecx
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov eax, dword [esi]
test eax, eax
js 0x4216ad
mov ecx, dword [esp + 0x2c]
mov edx, ebp
shl edx, cl
cmp eax, edx
jge 0x4216ad
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00408350
cmp dword [esp + 0x14], ebp
jne 0x4216a4
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov eax, dword [esi + 4]
test eax, eax
js 0x4216ad
mov ecx, dword [esp + 0x2c]
mov edx, ebp
shl edx, cl
cmp eax, edx
jge 0x4216ad
cmp dword [esi], eax
jg 0x4216ad
mov ecx, dword [esp + 0x7c]
add edi, 2
add esi, 8
cmp edi, dword [ecx + 0xc]
jl 0x421612
jmp 0x421593
lea ecx, [esp + 0x14]
call fcn.0044ea50
xor ebp, ebp
jmp 0x421593
cmp eax, 8
jne 0x421593
cmp ecx, ebp
jne 0x420f13
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
mov dword [esp + 0x50], ecx
call edx
mov esi, eax
push 0
lea eax, [esp + 0x18]
push eax
push 0x5350b0
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x42170c
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push str.WUIBDS
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], edx
call fcn.0044ea50
push 0
lea eax, [esp + 0x18]
push eax
push str.Height
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x42175e
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x532ea4
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 1
jne 0x420f0a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], edx
call fcn.0044ea50
push 0
lea eax, [esp + 0x18]
push eax
push str.ImageMask
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], 5
jne 0x4217b0
lea ecx, [esp + 0x14]
call fcn.0044ea50
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x535098
mov ecx, esi
call fcn.00412200
cmp dword [esp + 0x14], ebp
jne 0x420f0a
cmp dword [esp + 0x1c], ebp
je 0x420f0a
lea ecx, [esp + 0x14]
call fcn.0044ea50
xor edi, edi
push edi
lea edx, [esp + 0x18]
push edx
push str.Decode
mov ecx, esi
mov dword [esp + 0x68], edi
call fcn.00412200
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x42180d
lea ecx, [esp + 0x14]
call fcn.0044ea50
push edi
lea eax, [esp + 0x18]
push eax
push 0x531758
mov ecx, esi
call fcn.00412200
mov eax, dword [esp + 0x14]
cmp eax, 6
jne 0x421875
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push edi
call fcn.00408350
lea ecx, [esp + 0x38]
call fcn.004010a0
test eax, eax
je 0x421852
mov ecx, 1
cmp dword [esp + 0x38], ecx
jne 0x42183f
fild dword [esp + 0x40]
jmp 0x421843
fld qword [esp + 0x40]
fld1
mov dword [esp + 0x5c], ecx
fucompp
fnstsw ax
test ah, 0x44
jnp 0x421856
mov dword [esp + 0x5c], edi
lea ecx, [esp + 0x38]
call fcn.0044ea50
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov dword [esp + 0x64], 1
jmp 0x421593
cmp eax, 5
jne 0x420f0a
lea ecx, [esp + 0x14]
call fcn.0044ea50
mov dword [esp + 0x64], 1
jmp 0x421593
or eax, 0xffffffff
or edx, eax
push str.Bad_image_parameters
push edx
push eax
push 1
call fcn.00412330
add esp, 0x10
jmp 0x4219bd
cmp dword [esp + 0x68], 0
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [eax + 0x1c]
push esi
je 0x42190f
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x60]
mov edx, dword [edx + 0x130]
push edi
mov edi, dword [esp + 0x60]
push edi
mov edi, dword [esp + 0x60]
push edi
push ebp
mov ebp, dword [esp + 0x44]
push ebp
push ebx
mov ebx, dword [esp + 0x6c]
push ebx
push eax
call edx
test esi, esi
je 0x42197a
mov ecx, esi
call fcn.0042c570
push esi
call fcn.0051163f
add esp, 4
jmp 0x42197a
cmp dword [esp + 0x68], 0
mov edi, dword [esp + 0x50]
je 0x42194a
mov esi, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x60]
mov edx, dword [edx + 0x12c]
push esi
mov esi, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x38]
push edi
push esi
mov esi, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x68]
push ebx
push esi
push eax
call edx
jmp 0x42197a
mov esi, dword [esp + 0x1b4]
mov edx, dword [edx + 0x128]
push esi
neg ebp
sbb ebp, ebp
lea esi, [esp + 0x9c]
and ebp, esi
mov esi, dword [esp + 0x2c]
push ebp
push edi
push esi
mov esi, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x60]
push ebx
push esi
push eax
call edx
mov ecx, edi
call fcn.0042c570
push edi
call fcn.0051163f
add esp, 4
lea ecx, [esp + 0x74]
call fcn.0044ea50
lea ecx, [esp + 0x84]
call fcn.0044ea50
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
imul edi, dword [esp + 0x28]
mov eax, edi
cmp eax, 0x3e8
jle 0x4219ba
mov eax, 0x3e8
add dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00511afd
add esp, 0x190
ret 0xc